Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 224 lines (208 sloc) 9.035 kb
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
1 <project name="ReplicatorG" basedir="." default="help">
f9e48556 » phooky
2009-08-28 * updated changelog and readme
2 <property name="project.lowercase" value="replicatorg"/>
d910b533 » phooky
2009-09-11 Fix for linux runtime props
3 <property file="ant.includes/${os.name}-${os.arch}.properties" />
1e428013 » phooky
2009-09-01 revamping build dirs to be a little more sane in advance of throwing …
4 <echo>${os.name}-${os.arch}</echo>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
5 <property name="src.dir" value="src"/>
6 <property name="build.dir" value="build"/>
7 <property name="classes.dir" value="${build.dir}/classes"/>
8 <property name="jar.dir" value="${build.dir}/jar"/>
9 <property name="resources.dir" value="resources"/>
10 <property name="shared.dir" value="${build.dir}/shared"/>
11 <property name="lib.dir" value="${shared.dir}/lib"/>
1023283a » phooky
2009-09-10 * added 1.5 compatibility flag
12 <property name="ant.build.javac.target" value="1.5"/>
4d1891af » kintel
2008-10-19 Experimental Ant build system
13
f9e48556 » phooky
2009-08-28 * updated changelog and readme
14 <path id="classpath">
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
15 <!-- include jarbundler -->
16 <fileset dir="build/macosx" includes="*.jar"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
17 <fileset dir="${lib.dir}" includes="*.jar"/>
18 <pathelement path="/System/Library/Java"/>
19 </path>
4d1891af » kintel
2008-10-19 Experimental Ant build system
20
f9e48556 » phooky
2009-08-28 * updated changelog and readme
21 <target name="test">
22 <echo message="Version: ${replicatorg.version}"/>
23 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
24
f9e48556 » phooky
2009-08-28 * updated changelog and readme
25 <target name="clean">
26 <delete dir="${classes.dir}"/>
27 <delete dir="${jar.dir}"/>
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
28 <delete dir="dist"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
29 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
30
f9e48556 » phooky
2009-08-28 * updated changelog and readme
31 <target name="compile">
1a097541 » TeamTeamUSA
2009-11-26 Integrated makerbot 0011 changes; Estimating no longer sends tweets; …
32 <mkdir dir="${classes.dir}"/>
33 <javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath" debug="true" debuglevel="lines,vars,source" source="1.5">
34 <!-- Uncomment to aid in Java debugging
35 <compilerarg value="-Xlint:deprecation" />
36 <compilerarg value="-Xlint:unchecked" />
37 -->
38 </javac>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
39 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
40
f9e48556 » phooky
2009-08-28 * updated changelog and readme
41 <target name="jar" depends="compile">
42 <mkdir dir="${jar.dir}"/>
43 <copy todir="${classes.dir}">
44 <fileset dir="${resources.dir}"/>
45 </copy>
46 <jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}">
47 </jar>
48 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
49
f9e48556 » phooky
2009-08-28 * updated changelog and readme
50 <target name="run" depends="jar">
51 <java fork="true" classname="replicatorg.app.Base"> <!-- jvm="/usr/lib/jvm/java-1.5.0-sun/bin/java" -->
52 <jvmarg value="-ea"/>
53 <classpath>
54 <path refid="classpath"/>
55 <pathelement location="${jar.dir}/${ant.project.name}.jar"/>
56 </classpath>
57 <sysproperty key="java.library.path" path="${native.lib.dir}"/>
58 <sysproperty key="replicatorg.app-resources" path="${lib.dir}"/>
a4101b1b » phooky
2009-09-08 * Firmware updates
59 <sysproperty key="replicatorg.toolpath" path="${native.tools.dir}"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
60 </java>
61 </target>
62
63 <target name="debug" depends="compile">
64 <java fork="true" classname="replicatorg.app.Base">
65 <jvmarg value="-ea"/>
66 <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000"/>
67 <classpath>
68 <path refid="classpath"/>
69 <pathelement location="${classes.dir}"/>
70 </classpath>
71 <sysproperty key="java.library.path" path="${native.lib.dir}"/>
72 <sysproperty key="replicatorg.app-resources" path="${lib.dir}"/>
73 </java>
74 </target>
d85916c2 » hoeken
2008-10-28 added names to threads, added debug target to ant, minor fixes.
75
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
76 <target name="dist-macosx" depends="jar" description="Builds OS X RegplicatorG distribution">
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
77 <property name="release.name" value="${project.lowercase}-${replicatorg.version}"/>
78 <property name="target.dir" value="dist/macosx/${release.name}"/>
79 <property name="dist.dir" value="build/macosx/dist"/>
80
f9e48556 » phooky
2009-08-28 * updated changelog and readme
81 <fail message="The disk image (DMG-file) for easy distribution on Mac OS X can only be built on Mac OS X currently">
82 <condition>
83 <not>
84 <os family="mac" />
85 </not>
86 </condition>
87 </fail>
88 <taskdef name="jarbundler" classname="net.sourceforge.jarbundler.JarBundler" />
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
89 <mkdir dir="${target.dir}"/>
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
90 <echo message="replicatorg.version = ${replicatorg.version}" />
f9e48556 » phooky
2009-08-28 * updated changelog and readme
91 <jarbundler
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
92 dir="${target.dir}"
f9e48556 » phooky
2009-08-28 * updated changelog and readme
93 name="ReplicatorG"
94 mainclass="replicatorg.app.Base"
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
95 icon="${dist.dir}/replicatorg.icns"
f9e48556 » phooky
2009-08-28 * updated changelog and readme
96 extraclasspath="/System/Library/Java"
97 vmoptions="-Xmx1G"
98 infostring="ReplicatorG ${replicatorg.version}, © 2008-${current.year} MakerBot Industries"
99 version="${replicatorg.version}"
100 jvmversion="1.5+"
101 stubfile="ReplicatorG"
102 >
103 <jarfileset dir="${jar.dir}" includes="ReplicatorG.jar"/>
104 <jarfileset dir="${lib.dir}" includes="*.jar"/>
42c12396 » phooky
2009-09-15 patch mac build
105 <jarfileset dir="${dist.dir}" includes="*.jnilib"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
106 <documenttype name="CNC GCode document"
107 extensions="gcode"
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
108 iconFile="${dist.dir}/replicatorg.icns"
f9e48556 » phooky
2009-08-28 * updated changelog and readme
109 role="Editor"/>
110 <resourcefileset dir="${lib.dir}" includes="*.gif"/>
111 <resourcefileset dir="${lib.dir}" includes="*.jpg"/>
112 <javaproperty name="replicatorg.app-resources" value="$APP_PACKAGE/Contents/Resources"/>
113 </jarbundler>
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
114 <copy todir="${target.dir}">
68bfd339 » phooky
2009-09-15 last round of fixes for mac build
115 <filelist dir="." files="license.txt,readme.txt,todo.txt"/>
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
116 <fileset dir="${dist.dir}" includes="drivers/*.dmg"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
117 </copy>
42c12396 » phooky
2009-09-15 patch mac build
118 <copy todir="${target.dir}/tools">
68bfd339 » phooky
2009-09-15 last round of fixes for mac build
119 <filelist dir="${dist.dir}/tools" files="avrdude,avrdude.conf,*a"/>
120 </copy>
121 <chmod file="${target.dir}/tools/avrdude" perm="ugo+rx"/>
122 <copy todir="${target.dir}/firmware">
123 <fileset dir="firmware"/>
42c12396 » phooky
2009-09-15 patch mac build
124 </copy>
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
125 <copy file="machines.xml.dist" tofile="${target.dir}/machines.xml"/>
68bfd339 » phooky
2009-09-15 last round of fixes for mac build
126 <copy file="firmware.xml.dist" tofile="${target.dir}/firmware.xml"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
127 <exec dir="." os="Mac OS X" executable="/usr/bin/lipo">
128 <arg value="-remove"/>
129 <arg value="x86_64"/>
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
130 <arg value="${target.dir}/ReplicatorG.app/Contents/MacOS/ReplicatorG"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
131 <arg value="-output"/>
050ed472 » phooky
2009-09-14 changes to distribution files for 0008
132 <arg value="${target.dir}/ReplicatorG.app/Contents/MacOS/ReplicatorG"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
133 </exec>
134 <exec dir="." os="Mac OS X" executable="/bin/sh">
135 <arg value="-c"/>
68bfd339 » phooky
2009-09-15 last round of fixes for mac build
136 <arg value="${dist.dir}/mkdmg.sh ${target.dir} . image ${release.name}-mac"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
137 </exec>
138 <!-- <gzip zipfile="${macosx.dist.dir}-image/ReplicatorG .dmg.gz" src="${dist}/mac-image/MyTool.dmg"/>-->
139 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
140
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
141 <target name="dist-common" depends="jar" description="Builds files common to all RegplicatorG distributions">
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
142 <mkdir dir="${target.dir}"/>
143 <copy todir="${target.dir}">
91b98899 » phooky
2009-09-10 Cleanup for windows build process; update windows rxtx to 2.2pre2
144 <filelist dir="." files="license.txt,readme.txt,todo.txt"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
145 <fileset dir="${build.dir}/shared" includes="lib/*.jar"/>
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
146 </copy>
147 <copy file="machines.xml.dist" tofile="${target.dir}/machines.xml"/>
148 <copy file="firmware.xml.dist" tofile="${target.dir}/firmware.xml"/>
149 <copy todir="${target.dir}/firmware">
150 <fileset dir="firmware"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
151 </copy>
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
152 <copy todir="${target.dir}/lib">
f9e48556 » phooky
2009-08-28 * updated changelog and readme
153 <fileset dir="${lib.dir}" includes="*.gif"/>
154 <fileset dir="${lib.dir}" includes="*.jpg"/>
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
155 <filelist dir="${lib.dir}" files="keywords.txt"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
156 <fileset dir="${jar.dir}" includes="*.jar"/>
157 </copy>
91b98899 » phooky
2009-09-10 Cleanup for windows build process; update windows rxtx to 2.2pre2
158 </target>
159
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
160 <target name="dist-linux" depends="jar" description="Builds Linux RegplicatorG distribution">
91b98899 » phooky
2009-09-10 Cleanup for windows build process; update windows rxtx to 2.2pre2
161 <property name="release.name" value="${project.lowercase}-${replicatorg.version}"/>
162 <property name="target.dir" value="dist/linux/${release.name}"/>
163 <property name="dist.dir" value="build/linux/dist"/>
164
165 <!-- standard files -->
166 <antcall target="dist-common"/>
167 <!-- platform-specific files -->
168 <copy todir="${target.dir}">
169 <filelist dir="${dist.dir}" files="replicatorg"/>
170 </copy>
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
171 <copy todir="${target.dir}/tools">
172 <filelist dir="${dist.dir}/tools" files="avrdude,avrdude.conf"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
173 </copy>
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
174 <copy todir="${target.dir}/lib-i686">
175 <fileset dir="${dist.dir}/lib-i686" includes="*.so"/>
176 </copy>
177 <copy todir="${target.dir}/lib-x86_64">
178 <fileset dir="${dist.dir}/lib-x86_64" includes="*.so"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
179 </copy>
91b98899 » phooky
2009-09-10 Cleanup for windows build process; update windows rxtx to 2.2pre2
180 <!-- permissions -->
edb29ec5 » phooky
2009-09-10 Many fixups to make the linux build sane.
181 <chmod file="${target.dir}/replicatorg" perm="ugo+rx"/>
182 <chmod file="${target.dir}/tools/avrdude" perm="ugo+rx"/>
183
184 <!-- Generate the .tgz -->
185 <exec dir="dist/linux" executable="/bin/tar">
186 <arg value="czf"/>
187 <arg value="../${release.name}-linux.tgz"/>
188 <arg value="${release.name}"/>
189 </exec>
190 </target>
2382ba02 » hoeken
2009-04-17 tweaked the build/dist process a bunch
191
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
192 <target name="dist-windows" depends="jar" description="Builds Windows RegplicatorG distribution">
91b98899 » phooky
2009-09-10 Cleanup for windows build process; update windows rxtx to 2.2pre2
193 <property name="release.name" value="${project.lowercase}-${replicatorg.version}"/>
194 <property name="target.dir" value="dist/windows/${release.name}"/>
195 <property name="dist.dir" value="build/windows/dist"/>
196 <!-- standard files -->
197 <antcall target="dist-common"/>
198 <!-- platform-specific files -->
199 <copy todir="${target.dir}">
200 <fileset dir="${dist.dir}" includes="*.dll"/>
201 <filelist dir="${dist.dir}" files="ReplicatorG.exe"/>
202 <fileset dir="${dist.dir}" includes="drivers/**/*"/>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
203 </copy>
d910b533 » phooky
2009-09-11 Fix for linux runtime props
204 <copy todir="${target.dir}/tools">
205 <fileset dir="${dist.dir}/tools"/>
206 </copy>
f9e48556 » phooky
2009-08-28 * updated changelog and readme
207 <zip
91b98899 » phooky
2009-09-10 Cleanup for windows build process; update windows rxtx to 2.2pre2
208 destfile="dist/${project.lowercase}-${replicatorg.version}-windows.zip"
209 basedir="${target.dir}/..">
f9e48556 » phooky
2009-08-28 * updated changelog and readme
210 </zip>
211 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
212
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
213 <target name="dist" depends="dist-linux,dist-macosx,dist-windows" description="Builds all RegplicatorG distributions">
f9e48556 » phooky
2009-08-28 * updated changelog and readme
214 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
215
861f49a3 » jmil
2009-11-13 successfully patched RepG 0009 with miles lightwood's patch with rick…
216 <!-- Help -->
217 <target name="help" description="Targets for this project">
218 <echo message="Targets for this project"/>
219 <exec executable="ant">
220 <arg value="-p"/>
221 </exec>
222 <antcall target="test" />
223 </target>
4d1891af » kintel
2008-10-19 Experimental Ant build system
224 </project>
Something went wrong with that request. Please try again.