[fant] r102 committed - * Add java main target...

4 views
Skip to first unread message

codesite...@google.com

unread,
Apr 2, 2010, 4:19:15 AM4/2/10
to fant...@googlegroups.com
Revision: 102
Author: maomaode
Date: Fri Apr 2 01:18:58 2010
Log: * Add java main target

--____________--

M etc/ant-inc/layout.xml
A etc/Main.java.template
M build.xml

http://code.google.com/p/fant/source/detail?r=102

Added:
/trunk/etc/Main.java.template
Modified:
/trunk/build.xml
/trunk/etc/ant-inc/layout.xml

=======================================
--- /dev/null
+++ /trunk/etc/Main.java.template Fri Apr 2 01:18:58 2010
@@ -0,0 +1,6 @@
+package @package.name@;
+
+public class Main {
+ public static void main(String[] args) {
+ }
+}
=======================================
--- /trunk/build.xml Fri Jan 25 22:53:15 2008
+++ /trunk/build.xml Fri Apr 2 01:18:58 2010
@@ -74,6 +74,7 @@
<fileset dir="${etc.dir}" includes="*.xml"
excludes="settings.xml"/>
</copy>
<copy todir="${fant.install.dir}" file="${etc.dir}/settings.xml"/>
+ <copy todir="${fant.install.dir}" file="${etc.dir}/Main.java.template"/>
</target>


=======================================
--- /trunk/etc/ant-inc/layout.xml Thu Apr 1 20:25:27 2010
+++ /trunk/etc/ant-inc/layout.xml Fri Apr 2 01:18:58 2010
@@ -10,6 +10,10 @@

<mkdir dir="${src.main.resources.dir}"/>
<mkdir dir="${src.test.resources.dir}"/>
+
+ <filter token="package.name"
value="${project.group.id}.${project.artifact.id}"/>
+ <copy file="${fant.etc.dir}/Main.java.template" filtering="true"
verbose="true"
+ tofile="${src.main.java.dir}/${project.package.path}/Main.java" />
</target>

<target name="layout.ws" depends="layout.java"

Reply all
Reply to author
Forward
0 new messages