Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
raphw
asm
Commits
cf968da2
Commit
cf968da2
authored
Jan 18, 2005
by
ekuleshov
Browse files
allow to disable class shrinking
parent
dc4018e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
build.xml
View file @
cf968da2
...
...
@@ -28,12 +28,13 @@
! THE POSSIBILITY OF SUCH DAMAGE.
-->
<project
name=
"ASM"
default=
"
compile
"
>
<project
name=
"ASM"
default=
"
shrink
"
>
<!-- ==================================== -->
<!-- ======== PROPERTY DEFINITION ======= -->
<!-- ==================================== -->
<property
file=
"${user.home}/asm-build.properties"
/>
<property
file=
"build.config"
/>
<property
file=
"build.properties"
/>
...
...
@@ -115,6 +116,16 @@
<src
path=
"${src}"
/>
<include
name=
"**/*.java"
/>
</javac>
</target>
<target
name=
"shrink.check"
>
<condition
property=
"product.shrink"
>
<not><isset
property=
"product.noshrink"
/></not>
</condition>
</target>
<target
name=
"shrink"
depends=
"compile,shrink.check"
if=
"product.shrink"
>
<echo
message=
"Shrinking"
/>
<java
classname=
"org.objectweb.asm.optimizer.Shrinker"
>
<classpath>
<pathelement
location=
"${out.build}/tmp"
/>
...
...
@@ -124,7 +135,7 @@
<arg
value=
"${out.build}"
/>
</java>
</target>
<!-- =================================== -->
<!-- ========== TEST ========== -->
<!-- =================================== -->
...
...
@@ -144,7 +155,7 @@
<mkdir
dir=
"${out.dist.lib}"
/>
</target>
<target
name=
"jar"
depends=
"dist.init,compile"
>
<target
name=
"jar"
depends=
"dist.init,compile
,shrink
"
>
<tstamp>
<format
property=
"product.build.time"
pattern=
"yyyyMMdd.HHmmss"
/>
</tstamp>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment