You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by jm...@apache.org on 2006/08/23 22:30:14 UTC
svn commit: r434222 - /incubator/xap/trunk/build.xml
Author: jmargaris
Date: Wed Aug 23 15:30:13 2006
New Revision: 434222
URL: http://svn.apache.org/viewvc?rev=434222&view=rev
Log:
changed some targets,
Modified:
incubator/xap/trunk/build.xml
Modified: incubator/xap/trunk/build.xml
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/build.xml?rev=434222&r1=434221&r2=434222&view=diff
==============================================================================
--- incubator/xap/trunk/build.xml (original)
+++ incubator/xap/trunk/build.xml Wed Aug 23 15:30:13 2006
@@ -1,15 +1,18 @@
<project name="OpenXap" default="help">
+
<description>OpenXap project</description>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- Project specific properties. -->
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <property name="isDebug" value="true" />
- <property name="jsunitDir" value="./jsunit" />
+ <property name="isDebug" value="true" />
+ <property name="jsunitDir" value="./jsunit" />
<property name="webappsRoot" value="./staging" />
- <property name="dist" value="./dist" />
+ <property name="dist" value="./dist" />
<property name="examplesAppName" value="xap" />
+ <property name="profile" value="xap"/>
+ <property name="release_dir" value="release"/>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<!-- Import other build files. -->
@@ -42,8 +45,15 @@
Available targets:
tests : runs JSUnit tests. You will need to modify
jsunit-server-properties.xml to point to a browser on your machine.
- examples : builds example apps.
- Usage: examples and demos -DwebappsRoot=[dir] -DexamplesAppName=[name]
+
+ deploy-examples: deploys examples without rebuilding profile
+ examples : rebuilds profile and redeploys examples
+ Usage: build examples c:\temp xap
+ or just
+ build examples
+ build-profile: compresses based on a profile in buildscripts/profiles to a specified directory
+ Usage: build compress profile_name dir
+
doc : builds JSDoc to doc/xap directory
all : runs tests, examples and doc
help : prints this message
@@ -62,16 +72,19 @@
<!-- area (i.e. webapps folder under tomcat). -->
<!-- To specify custom dist location and appname, use the following: -->
<!-- build.bat examples -DwebappsRoot=<dir> -DexamplesAppName=<name> -->
- <target name="examples" description="Builds examples. Usage: examples -DwebappsRoot=[dir]
+ <target name="examples" depends="build-profile, deploy-examples"/>
+
+
+ <target name="deploy-examples" description="Builds examples. Usage: examples -DwebappsRoot=[dir]
-DexamplesAppName=[name]">
- <delete dir="${webappsRoot}/${examplesAppName}"/>
- <mkdir dir="${webappsRoot}/${examplesAppName}"/>
- <copy todir="${webappsRoot}/${examplesAppName}" overwrite="true">
- <fileset dir="./WebContent" includes="*/**" />
- </copy>
+ <!-- <delete dir="${webappsRoot}/${examplesAppName}"/> -->
+ <mkdir dir="${webappsRoot}/${examplesAppName}"/>
+ <copy todir="${webappsRoot}/${examplesAppName}" overwrite="true">
+ <fileset dir="./WebContent" includes="*/**" />
+ </copy>
<copy file="./dist/zimbra.js" todir="${webappsRoot}/${examplesAppName}"/>
- <copy file="./build/xapcore.js" todir="${webappsRoot}/${examplesAppName}"/>
+ <copy file="./dist/xapcore.js" todir="${webappsRoot}/${examplesAppName}"/>
<copy todir="${webappsRoot}/${examplesAppName}" overwrite="true">
@@ -111,6 +124,19 @@
<mkdir dir="tools/dist"/>
<javac srcdir="tools/src" destdir="tools/dist"/>
</target>
+
+ <target name="build-profile" description="Builds a xap profile usage
+ is -Dprofile=PROFILE_NAME ">
+ <exec dir="buildscripts" executable="ant.bat">
+ <arg value="-Dprofile=${profile}" />
+ <arg value="-Drelease_dir=../${release_dir}" />
+ <arg value="compress" />
+ </exec>
+ <copy file="${release_dir}/xapcore.js" todir="dist"/>
+ <copy file="${release_dir}/xapcore.js.uncompressed.js" todir="dist"/>
+ <copy file="${release_dir}/build.txt" todir="dist"/>
+ </target>
+
<target name="compress-source" description="Compresses javascript source">
<delete dir="compressedSource"/>