File: maven.xml

package info (click to toggle)
clirr 0.6-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, trixie
  • size: 948 kB
  • sloc: java: 4,275; xml: 2,100; makefile: 9; sh: 4
file content (29 lines) | stat: -rw-r--r-- 901 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>

<project default="dist"
        xmlns:u="jelly:util"
  	xmlns:j="jelly:core">
  
    <goal name="dist" prereqs="jar:install,javaapp"/>

    <preGoal name="test:test">
        <attainGoal name="clirr:compiletestlibs"/>
    </preGoal>

    <goal name="clirr:compiletestlibs">
      <u:tokenize var="testlibs" delim=", ">${clirr.testlibs}</u:tokenize>
      <j:forEach items="${testlibs}" var="testlib" indexVar="testlibIdx">
Compiling test input ${testlib}
        <j:set var="testlibclassdir" value="${maven.build.dir}/testinput/${testlib}/classes"/>
        <mkdir dir="${testlibclassdir}"/>
        <javac 
          srcdir="${basedir}/src/testinput/${testlib}"
          destdir="${testlibclassdir}"/>
        <jar 
          basedir="${testlibclassdir}" 
          jarfile="${maven.build.dir}/testinput/${testlib}.jar" />
      </j:forEach>
    </goal>
    
    
 </project>