Gentoo Archives: gentoo-commits

From: "Patrice Clement (monsieurp)" <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-java/tomcat-jstl-compat/files: tomcat-jstl-compat-1.2.5-build.xml
Date: Wed, 03 Jun 2015 07:53:44
Message-Id: 20150603075338.F13DCA24@oystercatcher.gentoo.org
1 monsieurp 15/06/03 07:53:38
2
3 Added: tomcat-jstl-compat-1.2.5-build.xml
4 Log:
5 Initial commit. Fix bug 551032.
6
7 Signed-off-by: Patrice Clement <monsieurp@g.o>
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 93491BB8)
9
10 Revision Changes Path
11 1.1 dev-java/tomcat-jstl-compat/files/tomcat-jstl-compat-1.2.5-build.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-compat/files/tomcat-jstl-compat-1.2.5-build.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-java/tomcat-jstl-compat/files/tomcat-jstl-compat-1.2.5-build.xml?rev=1.1&content-type=text/plain
15
16 Index: tomcat-jstl-compat-1.2.5-build.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19
20 <!-- ====================================================================== -->
21 <!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
22 <!-- ====================================================================== -->
23
24 <!-- ====================================================================== -->
25 <!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
26 <!-- ====================================================================== -->
27 <!-- -->
28 <!-- Any modifications will be overwritten. -->
29 <!-- -->
30 <!-- Generated by Maven Ant Plugin on 6/2/15 10:03 PM -->
31 <!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
32 <!-- -->
33 <!-- ====================================================================== -->
34
35 <project name="taglibs-standard-compat-from-maven" default="package" basedir=".">
36
37 <!-- ====================================================================== -->
38 <!-- Build environment properties -->
39 <!-- ====================================================================== -->
40
41 <property file="${user.home}/.m2/maven.properties"/>
42 <property file="maven-build.properties"/>
43
44 <property name="maven.build.finalName" value="taglibs-standard-compat-1.2.5"/>
45 <property name="maven.build.dir" value="target"/>
46 <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
47 <property name="maven.build.srcDir.0" value="src/main/java"/>
48 <property name="maven.build.resourceDir.0" value="src/main/resources"/>
49 <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
50 <property name="maven.build.testDir.0" value="src/test/java"/>
51 <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
52 <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
53 <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
54
55 <property name="maven.repo.local" value="${user.home}/.m2/repository"/>
56 <property name="maven.settings.offline" value="false"/>
57 <property name="maven.settings.interactiveMode" value="true"/>
58
59 <!-- ====================================================================== -->
60 <!-- Defining classpaths -->
61 <!-- ====================================================================== -->
62
63 <path id="build.classpath">
64 </path>
65 <path id="build.test.classpath">
66 </path>
67
68 <!-- ====================================================================== -->
69 <!-- Cleaning up target -->
70 <!-- ====================================================================== -->
71
72 <target name="clean" description="Clean the output directory">
73 <delete dir="${maven.build.dir}"/>
74 </target>
75
76 <!-- ====================================================================== -->
77 <!-- Compilation target -->
78 <!-- ====================================================================== -->
79
80 <target name="compile" description="Compile the code">
81 <mkdir dir="${maven.build.outputDir}"/>
82 <javac destdir="${maven.build.outputDir}"
83 encoding="UTF-8"
84 nowarn="false"
85 debug="true"
86 optimize="false"
87 deprecation="true"
88 target="1.5"
89 verbose="false"
90 fork="false"
91 source="1.5">
92 <src>
93 <pathelement location="${maven.build.srcDir.0}"/>
94 </src>
95 <classpath refid="build.classpath"/>
96 </javac>
97 <copy todir="${maven.build.outputDir}">
98 <fileset dir="${maven.build.resourceDir.0}"/>
99 </copy>
100 </target>
101
102 <!-- ====================================================================== -->
103 <!-- Test-compilation target -->
104 <!-- ====================================================================== -->
105
106 <target name="compile-tests"
107 depends="compile"
108 description="Compile the test code"
109 unless="maven.test.skip">
110 <mkdir dir="${maven.build.testOutputDir}"/>
111 </target>
112
113 <!-- ====================================================================== -->
114 <!-- Run all tests -->
115 <!-- ====================================================================== -->
116
117 <target name="test"
118 depends="compile-tests, junit-missing"
119 unless="junit.skipped"
120 description="Run the test cases"/>
121
122 <target name="test-junit-present">
123 <available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
124 </target>
125
126 <target name="test-junit-status"
127 depends="test-junit-present">
128 <condition property="junit.missing">
129 <and>
130 <isfalse value="${junit.present}"/>
131 <isfalse value="${maven.test.skip}"/>
132 </and>
133 </condition>
134 <condition property="junit.skipped">
135 <or>
136 <isfalse value="${junit.present}"/>
137 <istrue value="${maven.test.skip}"/>
138 </or>
139 </condition>
140 </target>
141
142 <target name="junit-missing"
143 depends="test-junit-status"
144 if="junit.missing">
145 <echo>=================================== WARNING ===================================</echo>
146 <echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
147 <echo>===============================================================================</echo>
148 </target>
149
150 <!-- ====================================================================== -->
151 <!-- Javadoc target -->
152 <!-- ====================================================================== -->
153
154 <target name="javadoc" description="Generates the Javadoc of the application">
155 <javadoc sourcepath="${maven.build.srcDir.0}"
156 packagenames="*"
157 destdir="${maven.reporting.outputDirectory}/apidocs"
158 access="protected"
159 old="false"
160 verbose="false"
161 version="true"
162 use="true"
163 author="true"
164 splitindex="false"
165 nodeprecated="false"
166 nodeprecatedlist="false"
167 notree="false"
168 noindex="false"
169 nohelp="false"
170 nonavbar="false"
171 serialwarn="false"
172 charset="ISO-8859-1"
173 linksource="false"
174 breakiterator="false">
175 <link href="http://download.oracle.com/javase/1.5.0/docs/api"/>
176 </javadoc>
177 </target>
178
179 <!-- ====================================================================== -->
180 <!-- Package target -->
181 <!-- ====================================================================== -->
182
183 <target name="package" depends="compile,test" description="Package the application">
184 <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
185 compress="true"
186 index="false"
187 basedir="${maven.build.outputDir}"
188 excludes="**/package.html">
189 <manifest>
190 <attribute name="Main-Class" value="Main"/>
191 </manifest>
192 </jar>
193 </target>
194
195 <!-- ====================================================================== -->
196 <!-- A dummy target for the package named after the type it creates -->
197 <!-- ====================================================================== -->
198
199 <target name="jar" depends="package" description="Builds the jar for the application"/>
200
201 <!-- ====================================================================== -->
202 <!-- Download dependencies target -->
203 <!-- ====================================================================== -->
204
205 <target name="test-offline">
206 <condition property="maven.mode.offline">
207 <equals arg1="${maven.settings.offline}" arg2="true"/>
208 </condition>
209 </target>
210
211 </project>