Adds ant-contrib-1.0b3.jar

Replaces the <if> task (used javascript in a file with .py suffix :/ ). I kept it commented out for now, in case someone is using it (not used OOTB)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1100795 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2011-05-08 19:18:27 +00:00
parent 5c8fbb779d
commit c35abeb2cd
3 changed files with 12 additions and 6 deletions
+1
View File
@@ -382,6 +382,7 @@ ofbiz/trunk/specialpurpose/googlecheckout/lib/checkout-sdk-0.8.8.jar
The following libraries distributed with Apache OFBiz are licensed under the
Apache Software License:
ofbiz/trunk/framework/webapp/lib/DataVision-1.0.0.jar
ofbiz/trunk/framework/base/lib/ant/ant-contrib-1.0b3.jar
=========================================================================
Apache Software License
Binary file not shown.
+11 -6
View File
@@ -153,12 +153,17 @@ under the License.
</groovyc>
</presetdef>
<scriptdef name="if" language="javascript" classpathref="rhino.class.path" loaderref="rhino.class.path.loader" src="${ofbiz.home.dir}/tools/If-ant.py">
<!-- replaced by ant contrib version -->
<!--scriptdef name="if" language="javascript" classpathref="rhino.class.path" loaderref="rhino.class.path.loader" src="${ofbiz.home.dir}/tools/If-ant.py">
<element name="condition" classname="org.apache.tools.ant.taskdefs.condition.And"/>
<element name="commands" classname="org.apache.tools.ant.taskdefs.Sequential"/>
<element name="else" classname="org.apache.tools.ant.taskdefs.Sequential"/>
</scriptdef>
</scriptdef-->
<taskdef resource="net/sf/antcontrib/antlib.xml">
<classpath>
<pathelement location="${ofbiz.home.dir}/framework/base/lib/ant/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<taskdef name="javacc" classname="org.apache.tools.ant.taskdefs.optional.javacc.JavaCC" classpath="${ofbiz.home.dir}/framework/base/lib/ant/ant-nodeps-1.7.1.jar"/>
<taskdef name="jjtree" classname="org.apache.tools.ant.taskdefs.optional.javacc.JJTree" classpath="${ofbiz.home.dir}/framework/base/lib/ant/ant-nodeps-1.7.1.jar"/>
<macrodef name="ofbiz-javacc">
@@ -181,9 +186,9 @@ under the License.
javacchome="${ofbiz.home.dir}/lib/build/javacc"
outputdirectory="@{prefix}build/gen-src/javacc/@{dir}"/>
<replace token="public class"
value='@SuppressWarnings("all") public class'
dir="@{prefix}build/gen-src/javacc/@{dir}"
includes="*.java" />
value='@SuppressWarnings("all") public class'
dir="@{prefix}build/gen-src/javacc/@{dir}"
includes="*.java" />
<delete dir="@{prefix}build/classes/@{dir}"/>
</commands>
</if>