/[volute]/trunk/projects/theory/snapdm/build_java.xml
ViewVC logotype

Diff of /trunk/projects/theory/snapdm/build_java.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 362 by bourges.laurent, Mon May 5 18:18:10 2008 UTC revision 363 by bourges.laurent, Tue May 6 06:11:04 2008 UTC
# Line 19  Line 19 
19    <pathelement location="${libs}/jdbc/sqljdbc-2005-1.2.jar" />    <pathelement location="${libs}/jdbc/sqljdbc-2005-1.2.jar" />
20  </path>  </path>
21    
22    <!-- class paths for runtime -->
23    <path id="runtime.class.path">
24      <path refid="infrastructure.class.path" />
25      <pathelement location="${sources.gen.dist}/${build.gen.file}" />
26      <pathelement location="${properties}" />
27    </path>
28    
29    
30  <!-- checks if build is necessary : java source code & libraries -->  <!-- checks if build is necessary : java source code & libraries -->
31  <uptodate property="build.base.notRequired">  <uptodate property="build.base.notRequired">
# Line 262  Line 269 
269    
270    
271    
272    <!-- Compile Unit Tests -->
273    <target name="compileTest">
274      <echo>compile tests ...</echo>
275      <echo>compile from : ${sources.test}</echo>
276      <echo>compile to   : ${build.test}</echo>
277      
278      <mkdir dir="${build.test}"/>
279      
280      <javac sourcepath="" srcdir="${sources.test}" destdir="${build.test}" listfiles="false"
281             fork="true" verbose="false" encoding="UTF-8"
282             debug="on" deprecation="on" optimize="on" casesensitive="true"
283             source="1.5" target="1.5">
284        
285        <classpath refid="runtime.class.path" />
286        
287        <include name="**/*.java"/>
288      </javac>
289      
290      <jar jarfile="${dist}/${build.test.file}" compress="true">
291        <fileset dir="${build.test}" />
292    
293        <manifest>
294          <attribute name="Built-By" value="${build.by}"/>
295          <attribute name="Built-Date" value="${build.date}"/>
296          
297          <attribute name="Build-Jdk" value="${java.vm.version}"/>
298          <attribute name="Build-Os" value="${os.name} ${os.version} - ${os.arch}"/>
299    
300          <attribute name="Main-Class" value="org.ivoa.test.Main"/>
301          
302          <section name="Common">
303            <attribute name="Specification-Title" value="${gen.title}"/>
304            <attribute name="Specification-Version" value="${version}"/>
305            <attribute name="Specification-Vendor" value="${vendor}"/>
306            <attribute name="Implementation-Title" value="${gen.title}"/>
307            <attribute name="Implementation-Version" value="${version} - ${build.date}"/>
308          </section>        
309        </manifest>
310        
311      </jar>
312      
313      <!-- remove to avoid classes in svn -->
314      <delete dir="${build.test}"/>
315      
316      <echo>compile tests : done.</echo>
317    </target>
318    
319    
320    
321    
322  <!-- target run : launches deployed application on Unix environment (bash used) -->  <!-- target run : launches deployed application on Unix environment (bash used) -->
323  <target name="run">  <target name="run">
324    <echo message="running ${gen.title} ..."/>    <echo message="running ${gen.title} ..."/>
# Line 271  Line 328 
328    <java classname="org.ivoa.test.Main" dir="${build}" fork="true" failonerror="true">    <java classname="org.ivoa.test.Main" dir="${build}" fork="true" failonerror="true">
329      <jvmarg value="-Xms128m"/>      <jvmarg value="-Xms128m"/>
330      <jvmarg value="-Xmx384m"/>      <jvmarg value="-Xmx384m"/>
331       <classpath>        <classpath>
332         <pathelement location="${dist}/${build.file}"/>          <path refid="runtime.class.path" />
333         <pathelement location="${sources.gen.dist}/${build.gen.file}"/>          <pathelement location="${dist}/${build.test.file}" />
334         <pathelement location="${properties}"/>          </classpath>
      </classpath>  
335     </java>       </java>  
336    
337    <echo message="run ${gen.title} : terminated."/>    <echo message="run ${gen.title} : terminated."/>

Legend:
Removed from v.362  
changed lines
  Added in v.363

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