Commit 2ceb8ad829514a5441f89c5317dbb5d3af6043a1

Authored by Mumfrey
1 parent 33e3174e

include debug and resources in core and mcpnames jars

Showing 1 changed file with 25 additions and 10 deletions
ant/build_liteloader.xml
@@ -11,6 +11,7 @@ @@ -11,6 +11,7 @@
11 <!-- Project definitions and dependencies --> 11 <!-- Project definitions and dependencies -->
12 <property name="upstream" value="" /> 12 <property name="upstream" value="" />
13 <property name="project" value="LiteLoader" /> 13 <property name="project" value="LiteLoader" />
  14 + <property name="displayname" value="LiteLoader" />
14 <property name="md5set" value="mcp" /> 15 <property name="md5set" value="mcp" />
15 <property name="outmd5set" value="liteloader" /> 16 <property name="outmd5set" value="liteloader" />
16 <property name="tweakclass" value="com.mumfrey.liteloader.launch.LiteLoaderTweaker" /> 17 <property name="tweakclass" value="com.mumfrey.liteloader.launch.LiteLoaderTweaker" />
@@ -24,6 +25,7 @@ @@ -24,6 +25,7 @@
24 <property name="src.dir" location="${build.dir}/src"/> 25 <property name="src.dir" location="${build.dir}/src"/>
25 <property name="mc.src.dir" location="${mcp.dir}/src/minecraft" /> 26 <property name="mc.src.dir" location="${mcp.dir}/src/minecraft" />
26 <property name="mc.bin.dir" location="${mcp.dir}/bin/minecraft" /> 27 <property name="mc.bin.dir" location="${mcp.dir}/bin/minecraft" />
  28 + <property name="reobf.dir" location="${mcp.dir}/reobf/minecraft" />
27 <property name="mc.libs.dir" location="${mcp.dir}/jars/libraries" /> 29 <property name="mc.libs.dir" location="${mcp.dir}/jars/libraries" />
28 30
29 <property name="dist.dir" location="${build.dir}/dist" /> 31 <property name="dist.dir" location="${build.dir}/dist" />
@@ -157,7 +159,7 @@ @@ -157,7 +159,7 @@
157 159
158 <echo level="info" message="Contributing libs" /> 160 <echo level="info" message="Contributing libs" />
159 <copy todir="${libs.dir}" verbose="true" overwrite="true"> 161 <copy todir="${libs.dir}" verbose="true" overwrite="true">
160 - <fileset dir="${eclipse.dir}/LiteLoader/lib"> 162 + <fileset dir="${eclipse.dir}/${project}/lib">
161 <exclude name="**/authlib*.jar" /> 163 <exclude name="**/authlib*.jar" />
162 <exclude name="**/log4j*.jar" /> 164 <exclude name="**/log4j*.jar" />
163 </fileset> 165 </fileset>
@@ -238,7 +240,7 @@ @@ -238,7 +240,7 @@
238 <echo level="info" message="Staging resources" /> 240 <echo level="info" message="Staging resources" />
239 241
240 <copy todir="${stage.dir}" overwrite="true"> 242 <copy todir="${stage.dir}" overwrite="true">
241 - <fileset dir="${mcp.dir}/reobf/minecraft" excludes=".svn/**, *.txt"> 243 + <fileset dir="${reobf.dir}" excludes=".svn/**, *.txt">
242 <exclude name="?.class" /> 244 <exclude name="?.class" />
243 <exclude name="??.class" /> 245 <exclude name="??.class" />
244 <exclude name="???.class" /> 246 <exclude name="???.class" />
@@ -275,15 +277,23 @@ @@ -275,15 +277,23 @@
275 <attribute name="Implementation-Title" value="${ant.project.name}" /> 277 <attribute name="Implementation-Title" value="${ant.project.name}" />
276 <attribute name="Implementation-Version" value="${meta.version}" /> 278 <attribute name="Implementation-Version" value="${meta.version}" />
277 <attribute name="TweakClass" value="${tweakclass}" /> 279 <attribute name="TweakClass" value="${tweakclass}" />
278 - <attribute name="TweakName" value="LiteLoader" /> 280 + <attribute name="TweakName" value="${displayname}" />
279 <attribute name="TweakVersion" value="${version}" /> 281 <attribute name="TweakVersion" value="${version}" />
280 <attribute name="TweakAuthor" value="${author}" /> 282 <attribute name="TweakAuthor" value="${author}" />
281 </manifest> 283 </manifest>
282 <fileset dir="${stage.dir}" /> 284 <fileset dir="${stage.dir}" />
283 </jar> 285 </jar>
284 </target> 286 </target>
  287 +
  288 + <target name="compiledebug" description="Recompile with debug classes">
  289 + <copy todir="${src.dir}" verbose="false" overwrite="true" failonerror="false">
  290 + <fileset dir="${eclipse.dir}/${project}/debug" />
  291 + </copy>
  292 +
  293 + <antcall target="recompile" />
  294 + </target>
285 295
286 - <target name="mcpjar" description="Build the MCP-names jar"> 296 + <target name="mcpjar" description="Build the MCP-names jar" depends="compiledebug">
287 <echo level="info" message="Building mcpnamesjars" /> 297 <echo level="info" message="Building mcpnamesjars" />
288 298
289 <mkdir dir="${dist.dir}" /> 299 <mkdir dir="${dist.dir}" />
@@ -298,20 +308,24 @@ @@ -298,20 +308,24 @@
298 <attribute name="Implementation-Title" value="${ant.project.name}" /> 308 <attribute name="Implementation-Title" value="${ant.project.name}" />
299 <attribute name="Implementation-Version" value="${meta.version}" /> 309 <attribute name="Implementation-Version" value="${meta.version}" />
300 <attribute name="TweakClass" value="${tweakclass}" /> 310 <attribute name="TweakClass" value="${tweakclass}" />
301 - <attribute name="TweakName" value="LiteLoader" /> 311 + <attribute name="TweakName" value="${displayname}" />
302 <attribute name="TweakVersion" value="${version}" /> 312 <attribute name="TweakVersion" value="${version}" />
303 <attribute name="TweakAuthor" value="${author}" /> 313 <attribute name="TweakAuthor" value="${author}" />
304 </manifest> 314 </manifest>
305 - <fileset dir="${mcp.dir}/bin/minecraft"> 315 + <fileset dir="${mc.bin.dir}">
306 <include name="com/mumfrey/**" /> 316 <include name="com/mumfrey/**" />
307 <include name="net/eq2online/**" /> 317 <include name="net/eq2online/**" />
308 </fileset> 318 </fileset>
  319 + <fileset dir="${eclipse.dir}/${project}/resources" excludes=".svn/**" />
  320 + <fileset dir="${eclipse.dir}/${project}/debug" excludes=".svn/**">
  321 + <exclude name="**/*.java" />
  322 + </fileset>
309 </jar> 323 </jar>
310 <jar destfile="${dist.dir}/${artefact.name}-mcpnames-sources.${filetype}" duplicate="preserve" index="false" filesetmanifest="skip"> 324 <jar destfile="${dist.dir}/${artefact.name}-mcpnames-sources.${filetype}" duplicate="preserve" index="false" filesetmanifest="skip">
311 - <fileset dir="${eclipse.dir}/LiteLoader/java/common" />  
312 - <fileset dir="${eclipse.dir}/LiteLoader/java/client" />  
313 - <fileset dir="${eclipse.dir}/LiteLoader/debug" />  
314 - <fileset dir="${eclipse.dir}/LiteLoader/resources" /> 325 + <fileset dir="${eclipse.dir}/${project}/java/common" />
  326 + <fileset dir="${eclipse.dir}/${project}/java/client" />
  327 + <fileset dir="${eclipse.dir}/${project}/debug" />
  328 + <fileset dir="${eclipse.dir}/${project}/resources" />
315 </jar> 329 </jar>
316 </target> 330 </target>
317 331
@@ -343,6 +357,7 @@ @@ -343,6 +357,7 @@
343 </manifest> 357 </manifest>
344 <fileset dir="${stage.dir}/${javadocpath}" /> 358 <fileset dir="${stage.dir}/${javadocpath}" />
345 </jar> 359 </jar>
  360 + <copy file="${dist.dir}/${artefact.name}-javadoc.${filetype}" tofile="${dist.dir}/${artefact.name}-mcpnames-javadoc.${filetype}" />
346 </target> 361 </target>
347 362
348 <target name="deploy" depends="production" description="Deploy artifact to local minecraft installation in APPDATA"> 363 <target name="deploy" depends="production" description="Deploy artifact to local minecraft installation in APPDATA">