/[volute]/trunk/projects/dm/vo-dml-org/build_jalopy.xml
ViewVC logotype

Contents of /trunk/projects/dm/vo-dml-org/build_jalopy.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4146 - (show annotations)
Tue Jul 11 08:52:16 2017 UTC (3 years ago) by lmichel
File MIME type: text/xml
File size: 3117 byte(s)
Old folder renamed. Should be removed soon
1 <!--
2 build_java.xml file : specific targets for java code
3 -->
4
5 <!-- jalopy code formatter configuration -->
6 <property name="jalopyConvention" location="${libs}/jalopy/jalopy-java-laurent.xml" />
7 <property name="jalopyConvention_1.5c3" location="${libs}/jalopy/jalopy-java-laurent_1.5c3.xml" />
8 <property name="jalopyConvention_1.5c3_skipJavaDoc" location="${libs}/jalopy/jalopy-java-laurent_1.5c3_skipJavaDoc.xml" />
9
10
11 <!-- up to date checks -->
12
13 <!-- target format : formats all generated java sources -->
14 <target name="format" depends="buildFormatter">
15 <!--
16 Invokes Jalopy as follows:
17
18 - All formatted files will have unix fileformat (\n)
19 - Load your code convention from the given url
20 - Override the convention to use loglevel "info"
21 - Override the convention to use 2 threads
22 - The import optimization feature will work (if enabled in the active
23 convention), because a classpath reference is specified
24
25 Don't forget to setup an include pattern as Jalopy truly expects
26 valid Java source files as input!
27 -->
28
29 <java classname="org.ivoa.jalopy.Formatter" dir="${libs}/jalopy/bin"
30 fork="true" failonerror="true">
31 <jvmarg value="-Xms32m"/>
32 <jvmarg value="-Xmx64m"/>
33
34 <arg value="${sources.gen}/src"/>
35 <arg value="${jalopyConvention}"/>
36
37 <classpath>
38 <pathelement location="${libs}/log4j-1.2.16.jar" />
39 <pathelement location="${libs}/jalopy/bin"/>
40 <!-- use gerard patched 1.5.b1 version (enum problem present) -->
41 <pathelement location="${libs}/jalopy/lib/jalopy-1.5b1.jar"/>
42 </classpath>
43
44 </java>
45
46 </target>
47
48 <target name="buildFormatter" unless="build.formatter.notRequired">
49 <!--
50 Note : formatting causes problems with annotations for enumerations but allows people to read code ...
51 Workaround : compile first then formats for read only purposes.
52 -->
53 <mkdir dir="${libs}/jalopy/bin"/>
54 <javac sourcepath="" srcdir="${libs}/jalopy/src" destdir="${libs}/jalopy/bin" listfiles="false"
55 fork="true" verbose="false" encoding="UTF-8"
56 debug="on" deprecation="on" optimize="on" casesensitive="true"
57 source="1.5" target="1.5"
58 includeantruntime="false" >
59
60 <classpath>
61 <pathelement location="${libs}/jalopy/lib/jalopy-1.5b1.jar"/>
62 <pathelement location="${libs}/log4j-1.2.16.jar" />
63 </classpath>
64
65 <include name="**/*.java"/>
66 </javac>
67 </target>
68
69
70
71
72 <!-- target jalopyPreferences : launches jalopy preferences application -->
73 <target name="jalopyPrefs">
74
75 <java classname="Preferences" dir="${libs}/jalopy"
76 fork="true" failonerror="true">
77 <jvmarg value="-Xms32m"/>
78 <jvmarg value="-Xmx64m"/>
79
80 <classpath>
81 <pathelement location="${libs}/log4j-1.2.16.jar" />
82 <!-- use standard 1.5.c3 version (no enum problem present) -->
83 <pathelement location="${libs}/jalopy/lib/jalopy.jar"/>
84 </classpath>
85
86 </java>
87
88 </target>
89
90
91 <!-- end of build_jalopy.xml -->

Properties

Name Value
svn:mime-type text/xml

msdemlei@ari.uni-heidelberg.de
ViewVC Help
Powered by ViewVC 1.1.26