Commit 06eda36abc0b1b23a632f268ea5660210e75d4eb
1 parent
5f7e35c6
add javadoc jar task to build script
Showing
1 changed file
with
57 additions
and
39 deletions
ant/build_liteloader.xml
| @@ -37,29 +37,29 @@ | @@ -37,29 +37,29 @@ | ||
| 37 | </target> | 37 | </target> |
| 38 | 38 | ||
| 39 | <target name="setup_development"> | 39 | <target name="setup_development"> |
| 40 | - <property name="skipremoval" value="DEV" /> | 40 | + <property name="skipremoval" value="DEV" /> |
| 41 | <property name="md5.outfile" value="${md5.dir}/client_${outmd5set}.md5" /> | 41 | <property name="md5.outfile" value="${md5.dir}/client_${outmd5set}.md5" /> |
| 42 | - <property name="artefact.name" value="${ant.project.name}-${mcversion}" /> | 42 | + <property name="artefact.name" value="${ant.project.name}-${mcversion}-DEV" /> |
| 43 | </target> | 43 | </target> |
| 44 | 44 | ||
| 45 | <target name="setup_production"> | 45 | <target name="setup_production"> |
| 46 | - <property name="skipremoval" value="" /> | 46 | + <property name="skipremoval" value="" /> |
| 47 | <property name="md5.outfile" value="${md5.dir}/client_${outmd5set}_production.md5" /> | 47 | <property name="md5.outfile" value="${md5.dir}/client_${outmd5set}_production.md5" /> |
| 48 | - <property name="artefact.name" value="${ant.project.name}-${mcversion}" /> | 48 | + <property name="artefact.name" value="${ant.project.name}-${mcversion}" /> |
| 49 | </target> | 49 | </target> |
| 50 | 50 | ||
| 51 | <target name="setup_jenkins"> | 51 | <target name="setup_jenkins"> |
| 52 | - <property name="skipremoval" value="" /> | 52 | + <property name="skipremoval" value="" /> |
| 53 | <property name="md5.outfile" value="${md5.dir}/client_${outmd5set}_production.md5" /> | 53 | <property name="md5.outfile" value="${md5.dir}/client_${outmd5set}_production.md5" /> |
| 54 | - <property name="artefact.name" value="${ant.project.name}-${mcversion}-SNAPSHOT" /> | 54 | + <property name="artefact.name" value="${ant.project.name}-${mcversion}-SNAPSHOT" /> |
| 55 | </target> | 55 | </target> |
| 56 | 56 | ||
| 57 | <!-- Main target --> | 57 | <!-- Main target --> |
| 58 | <target name="development" depends="setup_development, findmcp, setdirsold, setdirsnew, build" description="Entry point for MCP and upstream builds" /> | 58 | <target name="development" depends="setup_development, findmcp, setdirsold, setdirsnew, build" description="Entry point for MCP and upstream builds" /> |
| 59 | 59 | ||
| 60 | - <target name="production" depends="setup_production, findmcp, setdirsold, setdirsnew, build, mcpjar" description="Entry point for production builds" /> | 60 | + <target name="production" depends="setup_production, findmcp, setdirsold, setdirsnew, build, javadoc, mcpjar" description="Entry point for production builds" /> |
| 61 | 61 | ||
| 62 | - <target name="jenkins" depends="setup_jenkins, findmcp, setdirsold, setdirsnew, build, mcpjar" description="Entry point for CI builds" /> | 62 | + <target name="jenkins" depends="setup_jenkins, findmcp, setdirsold, setdirsnew, build, javadoc, mcpjar" description="Entry point for CI builds" /> |
| 63 | 63 | ||
| 64 | <target name="setdirsnew" description="Set the MCP source directories for the new layout" unless="mcpsrc.exists"> | 64 | <target name="setdirsnew" description="Set the MCP source directories for the new layout" unless="mcpsrc.exists"> |
| 65 | <echo level="info" message="Setting MCP source directories for NEW configuration" /> | 65 | <echo level="info" message="Setting MCP source directories for NEW configuration" /> |
| @@ -264,37 +264,55 @@ | @@ -264,37 +264,55 @@ | ||
| 264 | </jar> | 264 | </jar> |
| 265 | </target> | 265 | </target> |
| 266 | 266 | ||
| 267 | - <target name="mcpjar" description="Build the MCP-names"> | ||
| 268 | - <echo level="info" message="Building mcpnamesjars" /> | ||
| 269 | - | ||
| 270 | - <mkdir dir="${dist.dir}" /> | ||
| 271 | - | ||
| 272 | - <delete file="${dist.dir}/${artefact.name}-mcpnames.${filetype}" /> | ||
| 273 | - <delete file="${dist.dir}/${artefact.name}-mcpnames-sources.${filetype}" /> | ||
| 274 | - | ||
| 275 | - <jar destfile="${dist.dir}/${artefact.name}-mcpnames.${filetype}" duplicate="preserve" index="true" manifestencoding="UTF-8"> | ||
| 276 | - <manifest> | ||
| 277 | - <attribute name="Built-By" value="MCP (http://mcp.ocean-labs.de)" /> | ||
| 278 | - <attribute name="Implementation-Vendor" value="${author}" /> | ||
| 279 | - <attribute name="Implementation-Title" value="${ant.project.name}" /> | ||
| 280 | - <attribute name="Implementation-Version" value="${version}" /> | ||
| 281 | - <attribute name="TweakClass" value="${tweakclass}" /> | ||
| 282 | - <attribute name="TweakName" value="LiteLoader" /> | ||
| 283 | - <attribute name="TweakVersion" value="${version}" /> | ||
| 284 | - <attribute name="TweakAuthor" value="${author}" /> | ||
| 285 | - </manifest> | ||
| 286 | - <fileset dir="${mcp.dir}/bin/minecraft"> | ||
| 287 | - <include name="com/mumfrey/**" /> | ||
| 288 | - <include name="net/eq2online/**" /> | ||
| 289 | - </fileset> | ||
| 290 | - </jar> | ||
| 291 | - <jar destfile="${dist.dir}/${artefact.name}-mcpnames-sources.${filetype}" duplicate="preserve" index="false" filesetmanifest="skip"> | ||
| 292 | - <fileset dir="${eclipse}/LiteLoader/java/common" /> | ||
| 293 | - <fileset dir="${eclipse}/LiteLoader/java/client" /> | ||
| 294 | - <fileset dir="${eclipse}/LiteLoader/debug" /> | ||
| 295 | - <fileset dir="${eclipse}/LiteLoader/resources" /> | ||
| 296 | - </jar> | ||
| 297 | - </target> | 267 | + <target name="mcpjar" description="Build the MCP-names"> |
| 268 | + <echo level="info" message="Building mcpnamesjars" /> | ||
| 269 | + | ||
| 270 | + <mkdir dir="${dist.dir}" /> | ||
| 271 | + | ||
| 272 | + <delete file="${dist.dir}/${artefact.name}-mcpnames.${filetype}" /> | ||
| 273 | + <delete file="${dist.dir}/${artefact.name}-mcpnames-sources.${filetype}" /> | ||
| 274 | + | ||
| 275 | + <jar destfile="${dist.dir}/${artefact.name}-mcpnames.${filetype}" duplicate="preserve" index="true" manifestencoding="UTF-8"> | ||
| 276 | + <manifest> | ||
| 277 | + <attribute name="Built-By" value="MCP (http://mcp.ocean-labs.de)" /> | ||
| 278 | + <attribute name="Implementation-Vendor" value="${author}" /> | ||
| 279 | + <attribute name="Implementation-Title" value="${ant.project.name}" /> | ||
| 280 | + <attribute name="Implementation-Version" value="${version}" /> | ||
| 281 | + <attribute name="TweakClass" value="${tweakclass}" /> | ||
| 282 | + <attribute name="TweakName" value="LiteLoader" /> | ||
| 283 | + <attribute name="TweakVersion" value="${version}" /> | ||
| 284 | + <attribute name="TweakAuthor" value="${author}" /> | ||
| 285 | + </manifest> | ||
| 286 | + <fileset dir="${mcp.dir}/bin/minecraft"> | ||
| 287 | + <include name="com/mumfrey/**" /> | ||
| 288 | + <include name="net/eq2online/**" /> | ||
| 289 | + </fileset> | ||
| 290 | + </jar> | ||
| 291 | + <jar destfile="${dist.dir}/${artefact.name}-mcpnames-sources.${filetype}" duplicate="preserve" index="false" filesetmanifest="skip"> | ||
| 292 | + <fileset dir="${eclipse}/LiteLoader/java/common" /> | ||
| 293 | + <fileset dir="${eclipse}/LiteLoader/java/client" /> | ||
| 294 | + <fileset dir="${eclipse}/LiteLoader/debug" /> | ||
| 295 | + <fileset dir="${eclipse}/LiteLoader/resources" /> | ||
| 296 | + </jar> | ||
| 297 | + </target> | ||
| 298 | + | ||
| 299 | + <target name="javadoc" description="Create the javadoc jar"> | ||
| 300 | + <javadoc destdir="${stage.dir}/docs"> | ||
| 301 | + <fileset dir="${eclipse}/${project}/java"> | ||
| 302 | + <exclude name="**/debug" /> | ||
| 303 | + <exclude name="**/debug/*.java" /> | ||
| 304 | + </fileset> | ||
| 305 | + </javadoc> | ||
| 306 | + <jar destfile="${dist.dir}/${artefact.name}-javadoc.${filetype}" duplicate="preserve" index="true" manifestencoding="UTF-8"> | ||
| 307 | + <manifest> | ||
| 308 | + <attribute name="Built-By" value="MCP (http://mcp.ocean-labs.de)" /> | ||
| 309 | + <attribute name="Implementation-Vendor" value="${author}" /> | ||
| 310 | + <attribute name="Implementation-Title" value="${ant.project.name}" /> | ||
| 311 | + <attribute name="Implementation-Version" value="${version}" /> | ||
| 312 | + </manifest> | ||
| 313 | + <fileset dir="${stage.dir}/docs" /> | ||
| 314 | + </jar> | ||
| 315 | + </target> | ||
| 298 | 316 | ||
| 299 | <property environment="env" /> | 317 | <property environment="env" /> |
| 300 | 318 |