Add RUN_build
This commit is contained in:
parent
27a5840282
commit
262dcd66a1
|
@ -0,0 +1,31 @@
|
|||
@Title Build Adempiere Clean
|
||||
@Rem $Header: /cvsroot/adempiere/utils_dev/RUN_build.bat,v 1.22 2005/09/08 21:56:11 jjanke Exp $
|
||||
|
||||
@Rem Check java home
|
||||
@IF NOT EXIST "%JAVA_HOME%\bin" ECHO "** JAVA_HOME NOT found"
|
||||
@SET PATH=%JAVA_HOME%\bin;%PATH%
|
||||
|
||||
@Rem Check jdk
|
||||
@IF NOT EXIST "%JAVA_HOME%\lib\tools.jar" ECHO "** Need Full Java SDK **"
|
||||
|
||||
@Rem Set ant classpath
|
||||
@SET ANT_CLASSPATH=%CLASSPATH%;..\..\..\tools\lib\ant.jar;..\..\..\tools\lib\ant-launcher.jar;..\..\..\tools\lib\ant-swing.jar;..\..\..\tools\lib\ant-commons-net.jar;..\..\..\tools\lib\commons-net-1.4.0.jar
|
||||
@SET ANT_CLASSPATH=%ANT_CLASSPATH%;"%JAVA_HOME%\lib\tools.jar"
|
||||
|
||||
@SET ANT_OPTS=-Xms128m -Xmx512m
|
||||
|
||||
@echo Cleanup ...
|
||||
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main clean
|
||||
|
||||
@echo Building ...
|
||||
@"%JAVA_HOME%\bin\java" %ANT_OPTS% -classpath %ANT_CLASSPATH% -Dant.home="." org.apache.tools.ant.Main -logger org.apache.tools.ant.listener.MailLogger war
|
||||
@IF ERRORLEVEL 1 goto ERROR
|
||||
|
||||
@Echo Done ...
|
||||
@Pause
|
||||
@exit
|
||||
|
||||
:ERROR
|
||||
@Color fc
|
||||
|
||||
@Pause
|
|
@ -1,74 +0,0 @@
|
|||
|
||||
<project name="PosteritaAjaxUI" default="war" basedir=".">
|
||||
<description>
|
||||
This buildfile is used to build the Adempiere-Posterita WebUI system.
|
||||
</description>
|
||||
<!-- set global properties for this build -->
|
||||
<!--<property environment="env"/>-->
|
||||
<property name="src.dir" value="${basedir}/WEB-INF/src"/>
|
||||
<property name="classes.dir" value="${basedir}/WEB-INF/classes"/>
|
||||
<property name="dist.dir" value="${basedir}/dist"/>
|
||||
<property name="WEBINF.dir" value="${basedir}/WEB-INF"/>
|
||||
<property name="Adempiere.dir" value="${basedir}/../../../lib"></property>
|
||||
|
||||
<property name="war.name" value="webui"/>
|
||||
<property name="compile.debug" value="true"/>
|
||||
<property name="compile.deprecation" value="false"/>
|
||||
<property name="compile.optimize" value="true"/>
|
||||
|
||||
<path id="compile.classpath">
|
||||
<pathelement location="${basedir}"/>
|
||||
<pathelement location="${basedir}/WEB-INF/classes"/>
|
||||
<pathelement location="${basedir}/WEB-INF/src"/>
|
||||
|
||||
<fileset dir="${Adempiere.dir}">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
|
||||
<fileset dir="${basedir}/WEB-INF/lib">
|
||||
<include name="*.jar"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<target name="clean" description="delete class directory">
|
||||
<delete dir="${classes.dir}/org" />
|
||||
</target>
|
||||
|
||||
<target name="compile" depends="clean" description="Compile Java sources">
|
||||
<mkdir dir="${classes.dir}"/>
|
||||
<javac srcdir="WEB-INF/src"
|
||||
destdir="${classes.dir}"
|
||||
debug="${compile.debug}"
|
||||
deprecation="${compile.deprecation}"
|
||||
optimize="${compile.optimize}">
|
||||
<classpath refid="compile.classpath"/>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<target name="war" depends="compile">
|
||||
<delete dir="${dist.dir}" />
|
||||
|
||||
<mkdir dir="${dist.dir}"/>
|
||||
|
||||
<war
|
||||
warfile="${dist.dir}/${war.name}.war"
|
||||
webxml="${WEBINF.dir}/web.xml">
|
||||
<fileset dir="${basedir}" excludes="
|
||||
.settings/**,
|
||||
bin/**,
|
||||
dist/**,
|
||||
.*,
|
||||
work/**,
|
||||
WEB-INF/src/**,
|
||||
**/web.xml,
|
||||
**/test/**,
|
||||
lib/*-sources.jar,
|
||||
**/test.zul"
|
||||
>
|
||||
|
||||
</fileset>
|
||||
</war>
|
||||
|
||||
<copy file="${dist.dir}/${war.name}.war" tofile="../../../lib/${war.name}.war"/>
|
||||
</target>
|
||||
</project>
|
Loading…
Reference in New Issue