Commit 83b09f046eb7121eebe91e0109a6c4d91000b836
1 parent
9f4fb480
add mcpnames jar task to ant script
Showing
1 changed file
with
29 additions
and
0 deletions
ant/build_liteloader.xml
... | ... | @@ -255,6 +255,35 @@ |
255 | 255 | </jar> |
256 | 256 | </target> |
257 | 257 | |
258 | + <target name="mcpjar" description="Build the MCP-names"> | |
259 | + <echo level="info" message="Building mcpnamesjars" /> | |
260 | + | |
261 | + <mkdir dir="${dist.dir}" /> | |
262 | + | |
263 | + <delete file="${dist.dir}/${ant.project.name}-${version}-mcpnames.${filetype}" /> | |
264 | + <delete file="${dist.dir}/${ant.project.name}-${version}-mcpnames-sources.${filetype}" /> | |
265 | + | |
266 | + <jar destfile="${dist.dir}/${ant.project.name}-${version}-mcpnames.${filetype}" duplicate="preserve" index="true" manifestencoding="UTF-8"> | |
267 | + <manifest> | |
268 | + <attribute name="Built-By" value="MCP (http://mcp.ocean-labs.de)" /> | |
269 | + <attribute name="Implementation-Vendor" value="${author}" /> | |
270 | + <attribute name="Implementation-Title" value="${ant.project.name}" /> | |
271 | + <attribute name="Implementation-Version" value="${version}" /> | |
272 | + <attribute name="TweakClass" value="${tweakclass}" /> | |
273 | + <attribute name="TweakName" value="LiteLoader" /> | |
274 | + <attribute name="TweakVersion" value="${version}" /> | |
275 | + <attribute name="TweakAuthor" value="${author}" /> | |
276 | + </manifest> | |
277 | + <fileset dir="${eclipse}/LiteLoader/bin" /> | |
278 | + </jar> | |
279 | + <jar destfile="${dist.dir}/${ant.project.name}-${version}-mcpnames-sources.${filetype}" duplicate="preserve" index="false" filesetmanifest="skip"> | |
280 | + <fileset dir="${eclipse}/LiteLoader/java/common" /> | |
281 | + <fileset dir="${eclipse}/LiteLoader/java/client" /> | |
282 | + <fileset dir="${eclipse}/LiteLoader/debug" /> | |
283 | + <fileset dir="${eclipse}/LiteLoader/resources" /> | |
284 | + </jar> | |
285 | + </target> | |
286 | + | |
258 | 287 | <property environment="env" /> |
259 | 288 | |
260 | 289 | <target name="deploy" depends="production" description="Deploy artifact to local minecraft installation in APPDATA"> | ... | ... |