|
7 | 7 | <!-- -->
|
8 | 8 | <!-- vavi-commons-sandbox -->
|
9 | 9 | <!-- -->
|
10 |
| -<!-- @author Naohide Sano --> |
11 |
| -<!-- @version 0.00 021018 nsano initial version --> |
| 10 | +<!-- @author Naohide Sano --> |
| 11 | +<!-- @version 0.00 021018 nsano initial version --> |
12 | 12 | <!-- -->
|
13 | 13 | <!-- ////////////////////////////////////////////////////////////////////// -->
|
14 | 14 |
|
15 |
| -<project name="vavi-commons-sandbox" default="compile" basedir="." |
| 15 | +<project name="vavi-commons-sandbox" default="run" basedir="." |
16 | 16 | xmlns:artifact="urn:maven-artifact-ant">
|
17 | 17 |
|
18 | 18 | <path id="maven-ant-tasks.classpath">
|
|
31 | 31 |
|
32 | 32 | <!-- Path Definitions -->
|
33 | 33 | <path id="project.class.path">
|
| 34 | + <pathelement location="${javac.dest.test}" /> |
| 35 | + <pathelement location="${javac.dest}" /> |
34 | 36 | <fileset refid="maven-ant-tasks.dependency.fileset" />
|
35 | 37 | </path>
|
36 | 38 |
|
37 |
| - <!-- clean --> |
38 |
| - <target name="clean" description="Cleaning"> |
39 |
| - <delete> |
40 |
| - <fileset dir="${javac.dest}"> |
41 |
| - <include name="**/*" /> |
42 |
| - </fileset> |
43 |
| - <fileset dir="${javac.dest.test}"> |
44 |
| - <include name="**/*" /> |
45 |
| - </fileset> |
46 |
| - </delete> |
47 |
| - </target> |
48 |
| - |
49 | 39 | <!-- prepare -->
|
50 | 40 | <target name="prepare" description="Preparing">
|
51 | 41 | <artifact:pom file="pom.xml" id="maven.project" />
|
52 | 42 | <artifact:dependencies fileSetId="maven-ant-tasks.dependency.fileset">
|
53 | 43 | <pom refid="maven.project" />
|
54 | 44 | </artifact:dependencies>
|
55 |
| - </target> |
56 |
| - |
57 |
| - <!-- javac --> |
58 |
| - <target name="compile" depends="prepare" description="Compiling"> |
59 |
| - <javac debug="on" |
60 |
| - destdir="${javac.dest}" |
61 |
| - source="${project.build.plugins.plugin.configuration.source}" |
62 |
| - target="${project.build.plugins.plugin.configuration.target}" |
63 |
| - encoding="${project.build.plugins.plugin.configuration.encoding}"> |
64 |
| - <classpath refid="project.class.path" /> |
65 |
| - <include name="**/*.java" /> |
66 |
| - <src path="${javac.source}" /> |
67 |
| - </javac> |
68 |
| - |
69 |
| - <copy todir="${javac.dest}"> |
70 |
| - <fileset dir="${javac.resource}"> |
71 |
| - <include name="**/*" /> |
72 |
| - </fileset> |
73 |
| - </copy> |
74 |
| - |
75 |
| - <javac debug="on" |
76 |
| - destdir="${javac.dest.test}" |
77 |
| - source="${project.build.plugins.plugin.configuration.source}" |
78 |
| - target="${project.build.plugins.plugin.configuration.target}" |
79 |
| - encoding="${project.build.plugins.plugin.configuration.encoding}"> |
80 |
| - <classpath> |
81 |
| - <path refid="project.class.path" /> |
82 |
| - <pathelement location="${javac.dest}" /> |
83 |
| - </classpath> |
84 |
| - <include name="**/*.java" /> |
85 |
| - <src path="${javac.source.test}" /> |
86 |
| - </javac> |
87 |
| - |
88 |
| - <copy todir="${javac.dest.test}"> |
89 |
| - <fileset dir="${javac.resource.test}"> |
90 |
| - <include name="**/*" /> |
91 |
| - </fileset> |
92 |
| - </copy> |
93 |
| - </target> |
94 |
| - |
95 |
| - <!-- jar --> |
96 |
| - <target name="package" depends="compile" description="パッケージング"> |
97 |
| - <jar jarfile="target/${project.artifactId}-${project.version}.jar"> |
98 |
| - <fileset dir="${dir.build}"> |
99 |
| - <include name="**/*" /> |
100 |
| - </fileset> |
101 |
| - </jar> |
| 45 | + <artifact:mvn pom="pom.xml"> |
| 46 | + <arg value="package"/> |
| 47 | + <arg value="-Dmaven.test.skip=true"/> |
| 48 | + </artifact:mvn> |
102 | 49 | </target>
|
103 | 50 |
|
104 | 51 | <!-- run -->
|
105 |
| - <target name="run" depends="compile" description="Run"> |
| 52 | + <target name="run" depends="prepare" description="Run"> |
106 | 53 | <java classname="vavi.util.JapaneseCalendarTest" fork="yes">
|
107 |
| - <jvmarg value="-Dfile.encoding=UTF-8" /> |
| 54 | + <jvmarg value="-Dfile.encoding=${project.build.plugins.plugin.configuration.encoding}" /> |
108 | 55 | <classpath>
|
109 | 56 | <path refid="project.class.path" />
|
110 |
| - <pathelement location="${dir.build}" /> |
111 |
| - <pathelement location="target/test-classes" /> |
112 | 57 | </classpath>
|
113 | 58 | <arg line="${args}" />
|
114 | 59 | </java>
|
|
0 commit comments