hi i am creating a deployement tool for weblogic server by completely automating the deployement process using ant tool. (only for web application). user sepecifies the saurce folder through my application and also specifies the destination folder for the creation of context root.
following is the ant built file for the application. can anyone brif description abt it. especially <property name="context.root" value="E:\check_des" /> (why is the value= "E:\check_des" ) <project name="DDT" default="default"> - <!-- ****************SETS ALL THE NECESSARY PROPERTIES****************** --> <property name="context.root" value="E:\check_des" /> <property name="dd.dir" value="WEB-INF" /> <property name="classes.dir" value="classes" /> <property name="lib.dir" value="lib" /> <property name="destdir" value="${context.root}/${dd.dir}/${classes.dir}" /> <property name="javasrc.dir" value="javasrc" /> <property name="objname" value="source" /> <property name="user" value="domain12" /> <property name="password" value="domain12" /> <property name="servername" value="myserver" /> - <!-- ******************DEFAULT TARGET************************** --> - <target name="default" description="Default Target"> <echo message="WELCOME TO DYNAMIC DEPLOYMENT TOOL1.0" /> </target> - <!-- ***************DELETES THE EXISTING DIRECTORIES******************** --> - <target name="clean" description="Delete all generated files"> <delete dir="${context.root}" failonerror="false" /> </target> - <!-- ******************COMPILES THE SOURCE FILES FROM THE SPECIED LOCATION ******* --> - <target name="compile" description="Compiles the Task"> <mkdir dir="${destdir}" /> - <javac srcdir="${javasrc.dir}" destdir="${destdir}"> - <!-- <include name="**/sample.java"/> --> </javac> </target> - <!-- **************** GENERATES THE DESCRIPTORS ********************* --> - <target name="descriptors" description="Generates application and module descriptors"> <ddcreate dir="${context.root}" /> </target> - <!-- ***************CREATES THE JAR FILE***************************** --> - <target name="jar" description="JARs the Task"> <mkdir dir="${context.root}/${lib.dir}" /> <jar destfile="${context.root}/${lib.dir}/${ant.project.name}.jar" basedir="${context.root}/${dd.dir}" /> </target> - <!-- ***************CREATES THE WAR FILE***************************** --> - <target name="war" description="WARs the Task"> <mkdir dir="${context.root}/${lib.dir}" /> <jar destfile="${context.root}/${lib.dir}/${ant.project.name}.war" basedir="${context.root}/${dd.dir}" /> </target> - <!-- ***************CREATES THE EAR FILE***************************** --> - <target name="ear" description="EARs the Task"> <mkdir dir="${context.root}/${lib.dir}" /> <jar destfile="${context.root}/${lib.dir}/${ant.project.name}.ear" basedir="${context.root}/${dd.dir}" /> </target> - <!-- ***************Deploys application************************ --> - <target name="deploy" description="Deploys the Application"> <wldeploy user="${user}" password="${password}" action="deploy" source="${context.root}" name="${objname}" /> </target> - <!-- ***************Redeploys just WEB-INF of the application ******************* --> - <target name="redeploy" description="Redeploys the application"> <wldeploy user="${user}" password="${password}" action="redeploy" name="${objname}" /> </target> - <!-- ***************UnDeploys application ******************** --> - <target name="undeploy" description="Undeploys the application"> <wldeploy user="${user}" password="${password}" action="undeploy" name="${objname}" /> </target> </project> thanks in advance -- View this message in context: http://www.nabble.com/proj-using-ant-tp17997858p17997858.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]