1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project name="arun" default="arun" basedir=".">
- <description>Builds, tests, and runs the project arun.</description>
-
- <property name="main.class" value="" />
- <property name="program.args" value="" />
- <property name="jvm.args" value="-Xmx128m -Xms128m -XX:+UseG1GC" />
- <property name="runfork" value="true" />
-
- <property name="src.dir" location="java" />
- <property name="classes.dir" location="classes" />
- <property name="lib.dir" location="lib"/>
- <property name="tomcat.home" value="D:/Server/apache-tomcat-7.0.29"></property>
-
-
- <path id="classpath">
- <path location="${classes.dir}" />
- <fileset dir="${lib.dir}" includes="**/*.jar"/>
- </path>
-
- <target name="compile" description="run compile" >
- <javac srcdir="${src.dir}"
- destdir="${classes.dir}"
- includeantruntime="no"
- excludes="**/*.svn,*.svn"
- source="1.6"
- target="1.6"
- deprecation="true"
- failonerror="true"
- debug="true">
- <classpath refid="classpath" />
- </javac>
- </target>
-
- <target name="arun" description="run program" >
- <java classname="${main.class}" fork="${runfork}">
- <jvmarg line="${jvm.args}"/>
- <classpath refid="classpath" />
- <arg value="${program.args}"/>
- </java>
- </target>
-
- <target name="tomcat-start">
- <exec dir="${tomcat.home}/bin" executable="cmd">
- <env key="CATALINA_HOME" path="${tomcat.home}"/>
- <arg value="/C startup.bat"/>
- </exec>
- </target>
-
- <target name="tomcat-stop">
- <exec dir="${tomcat.home}/bin" executable="cmd">
- <env key="CATALINA_HOME" path="${tomcat.home}"/>
- <arg value="/c shutdown.bat"/>
- </exec>
- </target>
- </project>
|