-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
61 lines (51 loc) · 2.25 KB
/
build.xml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="UTF-8"?>
<!-- ////////////////////////////////////////////////////////////////////// -->
<!-- Copyright (c) 2010 by Naohide Sano, All rights reserved. -->
<!-- -->
<!-- Written by Naohide Sano -->
<!-- -->
<!-- OpenFeint for Java -->
<!-- -->
<!-- @author Naohide Sano -->
<!-- @version 0.00 100119 nsano initial version -->
<!-- -->
<!-- ////////////////////////////////////////////////////////////////////// -->
<project name="" default="run" basedir="."
xmlns:artifact="urn:maven-artifact-ant">
<path id="maven-ant-tasks.classpath">
<fileset dir="${user.home}/lib/java/maven-ant-tasks">
<include name="*.jar" />
</fileset>
</path>
<typedef resource="org/apache/maven/artifact/ant/antlib.xml"
uri="urn:maven-artifact-ant"
classpathref="maven-ant-tasks.classpath" />
<property environment="env" />
<property file="local.properties" />
<xmlproperty file="pom.xml" />
<!-- Path Definitions -->
<path id="project.class.path">
<pathelement location="${javac.dest.test}" />
<pathelement location="${javac.dest}" />
<fileset refid="maven-ant-tasks.dependency.fileset" />
</path>
<!-- prepare -->
<target name="prepare" description="Preparing">
<artifact:pom file="pom.xml" id="maven.project" />
<artifact:dependencies fileSetId="maven-ant-tasks.dependency.fileset">
<pom refid="maven.project" />
</artifact:dependencies>
<artifact:mvn pom="pom.xml">
<arg value="clean"/>
<arg value="package"/>
<arg value="-Dmaven.test.skip=true"/>
</artifact:mvn>
</target>
<!-- run -->
<target name="run" depends="prepare" description="Run Program">
<java classname="foo.Bar" fork="yes">
<classpath refid="project.class.path" />
</java>
</target>
</project>
<!-- -->