[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Ant Build.xml  XML
Forum Index -> Deployment
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

Hi,

I have not much experience with Ant, maybe someone already created such a script
I'm using hot deployment and not totally sure how to add this second class directory right?

regards
Markus
[WWW]
tdrasch

Power User
[Avatar]

Joined: 13/03/2009 19:09:45
Messages: 81
Location: Villingen-Schwenningen
Offline

Hi Markus,

here an example from our side:

Code:
 <project name="default" default="build">
 	<description>build</description>
 	
 FIRST STEP VARIABLES WILL BE DEFINED
 	 <property name="dist"  location="../dist"/>
 	 <property name="weblib"  location="../webcontent/WEB-INF/lib"/>
 	 
 	 <!-- if bcommjni is not in same workspace as webterminal then you have to change path -->
 	 <property name="bcommjni" location="../../bcommjni" />
 	
 	
 LAST STEP NEW FILE WILL BE CREATED
 	<target name="build" description="build"  depends="clean">
 		<mkdir dir="${dist}"/>
 	
 		<!-- copy rmiserver.jar if doesnt exist-->
 	    <copy file="${bcommjni}/rmiserver.jar" todir="${weblib}">
 	    </copy>
 		
 		<jar destfile="${dist}/NAME.war">
 			<fileset dir="../webcontent">
 				<include name="**/**"/>
 				<exclude name="**/**.java"/>
 			</fileset>
 		</jar>
 	</target>
 	
 	
 SECOUND STEP FURTHER FILE WILL BE DELETED
 	<target name="clean" depends="">
 		<!-- distverzeichnis löschen-->
 		<delete quiet="yes">
     		<fileset dir="${dist}"/>
   		</delete>
 	</target>
 	
 </project>
 


hope you understand this code
the most things are self-explanatory.
under eclipse create an ant-file (.xml) and you can run it as "ANT BUILD".

regards

--------------------------------
Good karma - for the moment...
why is the word abbreviation so long?
[WWW]
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

Thanx, works great, regards
Markus
[WWW]
 
Forum Index -> Deployment
Go to:   
Powered by JForum 2.1.6 © JForum Team