/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


eclipse export war file silently

12/02/2016 2358 views
    I have a project in eclipse which is created using below options.
File --> New --> Dynamic web application project..

I have linked the src folder to local GitHub synced folder.

Whenever there is a change in GitHub source files, I need to clean the project (only clean , not clean and build)

03E1l6.png
Once the clean is completed, I will export the complete project as war file (right click on project folder in eclipse and export --> war )
lmBA2r.png

Is there any command line options in eclipse or any other alternative to automate this.
1 Comment   [ + ] Show comment

Comments

  • Can anyone give suggestions on how to include external jar files and export to war file the gwt project

All Answers

0
I am able to do this one with Ant and below is the XML file I am using for that.
<?xml version="1.0"?><project name="MartServer" basedir="." default="build">   <property name="src.dir" value="src"/>   <property name="web.dir" value="WebContent"/>   <property name="build.dir" value="WebContent/WEB-INF/classes"/>   <property name="name" value="MartServer"/>   <path id="master-classpath">      <fileset dir="${web.dir}/WEB-INF/lib">         <include name="*.jar"/>      </fileset>      <pathelement path="${build.dir}"/>   </path>       <target name="clean" description="Clean output directories">		 	 <mkdir dir="${build.dir}"/>      <javac destdir="${build.dir}" source="1.8" target="1.8">         <src path="${src.dir}"/>         <classpath refid="master-classpath"/>      </javac>	     <war destfile="MartServer.war" webxml="${web.dir}/WEB-INF/web.xml">      <fileset dir="${web.dir}">         <include name="**/*.*"/>      </fileset>   </war>		   </target>	</project>
Answered 12/13/2016 by: ur00361883
Black Belt

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ