<?xml version="1.0"?> | |
<!-- | |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in | |
compliance with the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software distributed under the License is | |
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | |
implied. See the License for the specific language governing permissions and limitations under the License. | |
This work is copyright by the author(s) and is part of a greater work collectively copyright by the | |
Groovy community. See the NOTICE.txt file distributed with this work for additional information. | |
Author : Paul King | |
$Revision: 8999 $ ($LastChangedBy: paulk $) | |
$Date: 2007-11-02 20:51:05 +1000 (Fri, 02 Nov 2007) $ | |
--> | |
<project name="build-retro" default="" basedir="../.."> | |
<import file="build-setup.xml"/> | |
<target name="-retroInit" depends="-retroTaskdef"/> | |
<target name="-retroTaskdef"> | |
<taskdef name="retrotranslator" classname="net.sf.retrotranslator.transformer.RetrotranslatorTask"> | |
<classpath> | |
<fileset dir="${toolsLibDirectory}"> | |
<include name="retrotranslator-transformer-*.jar" /> | |
<include name="retrotranslator-runtime-*.jar" /> | |
<include name="backport-util-concurrent-*.jar" /> | |
</fileset> | |
</classpath> | |
</taskdef> | |
</target> | |
<macrodef name="retroArtifact"> | |
<attribute name="artifact"/> | |
<attribute name="basedir"/> | |
<sequential> | |
<retrotranslator target="1.4" destjar="@{basedir}/@{artifact}-jdk14.jar" | |
smart="true" verify="false" failonwarning="false" | |
backport="org.codehaus.groovy.util.LockableObject:edu.emory.mathcs.backport.java.util.concurrent.locks.ReentrantLock;java.util.regex.Pattern.quote:groovy.text.RegexUtils.quote"> | |
<jarfileset dir="@{basedir}" includes="@{artifact}.jar" /> | |
<classpath> | |
<fileset dir="${jdk14home}/jre/lib" includes="**/*.jar"/> | |
<fileset dir="${toolsLibDirectory}"> | |
<include name="retrotranslator-runtime-*.jar" /> | |
<include name="backport-util-concurrent-*.jar" /> | |
</fileset> | |
<path refid="runtimePath"/> | |
<path refid="jdk14ExtrasPath"/> | |
</classpath> | |
</retrotranslator> | |
</sequential> | |
</macrodef> | |
</project> |