Mercurial > public > ssdtant
comparison nbproject/groovy-build.xml @ 0:1918a6aed50a
Initial ant tasks for SSDT develkit
author | smith@nwoca.org |
---|---|
date | Sat, 16 Apr 2011 16:06:16 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:1918a6aed50a |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <!-- | |
3 *** GENERATED FROM project.xml - DO NOT EDIT *** | |
4 *** EDIT ../build.xml INSTEAD *** | |
5 | |
6 --> | |
7 <project xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc"> | |
8 <target name="-groovy-init-macrodef-javac"> | |
9 <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
10 <attribute name="srcdir" default="${src.dir}"/> | |
11 <attribute name="destdir" default="${build.classes.dir}"/> | |
12 <attribute name="classpath" default="${javac.classpath}"/> | |
13 <attribute name="includes" default="${includes}"/> | |
14 <attribute name="excludes" default="${excludes}"/> | |
15 <attribute name="debug" default="${javac.debug}"/> | |
16 <attribute name="sourcepath" default="${empty.dir}"/> | |
17 <attribute name="gensrcdir" default="${empty.dir}"/> | |
18 <element name="customize" optional="true"/> | |
19 <sequential> | |
20 <taskdef name="groovyc" classpath="${javac.classpath}" classname="org.codehaus.groovy.ant.Groovyc"/> | |
21 <property name="empty.dir" location="${build.dir}/empty"/> | |
22 <mkdir dir="${empty.dir}"/> | |
23 <groovyc srcdir="@{srcdir}" sourcepath="@{sourcepath}" destdir="@{destdir}" encoding="${source.encoding}" includes="@{includes}" excludes="@{excludes}" includeAntRuntime="false"> | |
24 <src> | |
25 <dirset dir="@{gensrcdir}" erroronmissingdir="false"> | |
26 <include name="*"/> | |
27 </dirset> | |
28 </src> | |
29 <classpath> | |
30 <path path="@{classpath}"/> | |
31 </classpath> | |
32 <javac debug="@{debug}" deprecation="${javac.deprecation}" encoding="${source.encoding}" source="${javac.source}" target="${javac.target}"> | |
33 <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/> | |
34 <customize/> | |
35 </javac> | |
36 </groovyc> | |
37 </sequential> | |
38 </macrodef> | |
39 <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
40 <attribute name="srcdir" default="${src.dir}"/> | |
41 <attribute name="destdir" default="${build.classes.dir}"/> | |
42 <attribute name="classpath" default="${javac.classpath}"/> | |
43 <sequential> | |
44 <depend srcdir="@{srcdir}" destdir="@{destdir}" cache="${build.dir}/depcache" includes="${includes}" excludes="${excludes}"> | |
45 <classpath> | |
46 <path path="@{classpath}"/> | |
47 </classpath> | |
48 </depend> | |
49 </sequential> | |
50 </macrodef> | |
51 <macrodef name="force-recompile" uri="http://www.netbeans.org/ns/j2se-project/3"> | |
52 <attribute name="destdir" default="${build.classes.dir}"/> | |
53 <sequential> | |
54 <fail unless="javac.includes">Must set javac.includes</fail> | |
55 <pathconvert property="javac.includes.binary" pathsep=","> | |
56 <path> | |
57 <filelist dir="@{destdir}" files="${javac.includes}"/> | |
58 </path> | |
59 <globmapper from="*.java" to="*.class"/> | |
60 </pathconvert> | |
61 <delete> | |
62 <files includes="${javac.includes.binary}"/> | |
63 </delete> | |
64 </sequential> | |
65 </macrodef> | |
66 </target> | |
67 </project> |