Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
xml
xml
borderStylesolid
titlebuild.xml
<?xml version="1.0"?>
<!-- build file for building a war -->

<project name="build" default="war" basedir=".">
	
    <property file="build.properties"/>
	    <property name="src.dir" value="src"/>
	    <property name="dest.dir" value="bin"/>

	
	    <target name="compileclean">
		<mkdir dirdescription="${dest.dir}"/>

Delete all generated files.">
        <echo message="Deleting bin folder" />
        <javac<delete srcdirdir="${src.dir}" destdir="${dest.dir}">
			<classpath path"bin"/>
    </target>

      <target name="compile">
    	<mkdir dir="${javadest.home}/lib/tools.jardir}"/>
			<classpath path

        <javac srcdir="${j2ee.src.dir}" destdir="${dest.dir}">
            <classpath path="${java.home}/lib/j2eetools.jar"/>
            <!--classpath path="${j2ee.home}/lib/j2ee.jar"/-->
     </javac>
          </target>

<classpath path="${geronimo.home}/repository/org/apache/geronimo/specs/geronimo-servlet_2.5_spec/1.1/geronimo-servlet_2.5_spec-1.1.jar" />
        </javac>
  <target name="war" depends=" </target>

    <target name="war" depends="compile">
		        <war destfile="college_fest.war" webxml="WEB-INF/web.xml">
			            <zipfileset dir="jsp" prefix="jsp"/>
			            <zipfileset dir="pix" prefix="pix"/>
			<classes dir="   	    
            <classes dir="${dest.dir}"/>
		</war>
	 </target>
</project>

Open the build.properties file and remove the jboss.server entry, there is no need for adding the directory for the Geronimo server since that information is not needed by the build.xml file that you will be using when running ant.

jboss.server=<jboss_home>/server/<your_server_name>

You may also want to update the j2ee.home entry to point to the Geronimo installation directory.

j2ee.home=<geronimo_home>

    
            <webinf dir="WEB-INF" />
        </war>
</target>


</project>

To build the migrated application run ant from the command line without specifying any additional parameters, a college_fest.war file will be created in the root directory of the College Fest application directory structure.

To delete the generated files for a clean build run ant clean followed by an ant.

Back to Top

Deploy the migrated sample application

...