Running any script on UNIX/Linux server using WinSCP from windows.
Script is
- option confirm off
- open username:password@hostname
- cd /pathToYourScripts
- call ./myscript.sh
Happy Coding
Its all my personal learnings from different sources.These are my personal suggestion which has no relation with my employer.Please use these solutions at your own risk.
Posted by test | Posted on 12:10 PM
Category:
Posted by test | Posted on 8:31 AM
Category:
<plugin>
<groupId>org.apache.maven.pluginsgroupId>
<artifactId>maven-war-pluginartifactId>
<version>2.1-alpha-2version>
<configuration>
<outputDirectory>${project.build.directory}/tmp/outputDirectory>
<workDirectory>${project.build.directory}/tmp/war/workworkDirectory>
<webappDirectory>${project.build.webappDirectory}webappDirectory>
<cacheFile>${project.build.directory}/tmp/war/work/webapp-cache.xmlcacheFile>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>pdfnonFilteredFileExtension>
<nonFilteredFileExtension>pngnonFilteredFileExtension>
<nonFilteredFileExtension>gifnonFilteredFileExtension>
<nonFilteredFileExtension>jspnonFilteredFileExtension>
nonFilteredFileExtensions>
<webResources>
<resource>
<directory>src/main/webapp/directory>
<targetPath>WEB-INFtargetPath>
<filtering>truefiltering>
<includes>
<include>**/*.xml
Application
<target name="default" depends="setup,compile,buildwar,deploy">target>
${basedir}/src
: Java files, properties, XML config files${basedir}/web
: Your JSP files${basedir}/web/lib
: Any JARs required at runtime${basedir}/web/META-INF
: Your manifest${basedir}/web/WEB-INF
: Your web.xml filessetup
task that creates the distribution directory and copies any artifacts that need to be WARred directly:<target name="setup">
<mkdir dir="dist" />
<echo>Copying web into distecho>
<copydir dest="dist/web" src="web" />
<copydir dest="dist/web/WEB-INF/lib" src="${basedir}/../web/WEB-INF/lib" />
target>
src
but need to be available at runtime (e.g. properties, XML files, etc.):<target name="compile">
<delete dir="${dist.dir}/web/WEB-INF/classes" />
<mkdir dir="${dist.dir}/web/WEB-INF/classes" />
<javac destdir="${dist.dir}/web/WEB-INF/classes" srcdir="src">
<classpath>
<fileset dir="${basedir}/../web/WEB-INF/lib">
<include name="*" />
fileset>
classpath>
javac>
<copy todir="${dist.dir}/web/WEB-INF/classes">
<fileset dir="src">
<include name="**/*.properties" />
<include name="**/*.xml" />
fileset>
copy>
target>
<target name="buildwar">
<war basedir="${basedir}/dist/web" destfile="My.war"
webxml="${basedir}/dist/web/WEB-INF/web.xml">
<exclude name="WEB-INF/**" />
<webinf dir="${basedir}/dist/web/WEB-INF/">
<include name="**/*.jar" />
webinf>
war>
target>
<target name="deploy">
<copy file="My.war" todir="${tomcat.deploydir}" />
target>
default
target from Eclipse will compile, WAR, and deploy your solution.© All Rights Reserved. Share The Documentum Knowledge