A complete 3D game development suite written purely in Java.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
jmonkeyengine/sdk/jme3-obfuscate/src/com/jme3/gde/obfuscate/pro-guard-targets.xml

40 lines
1.6 KiB

<target name="-obfuscate" depends="-test-obfuscate-enabled,-create-library-property" if="is.obfuscate.enabled">
<taskdef resource="proguard/ant/task.properties"
classpath="${libs.pro-guard.classpath}" />
<proguard>
-libraryjars ${proguard.library.path}
-injars ${dist.dir}/lib(!META-INF/MANIFEST.MF)
-injars ${dist.jar}
-outjars ${dist.jar}.obfuscated.jar
-keepclasseswithmembers public class * {
public static void main(java.lang.String[]);
}
${obfuscate.options}
</proguard>
<delete file="${dist.jar}"/>
<move file="${dist.jar}.obfuscated.jar" tofile="${dist.jar}"/>
<delete>
<fileset dir="${dist.dir}/lib" includes="**/*.jar"/>
</delete>
</target>
<target name="-test-obfuscate-enabled">
<condition property="is.obfuscate.enabled">
<istrue value="${obfuscate}"/>
</condition>
</target>
<target name="-create-library-property" depends="-create-mac-library-property">
<property name="proguard.library.path" value="${java.home}/lib/rt.jar"/>
</target>
<target name="-create-mac-library-property" depends="-test-mac" if="is.macos">
<property name="proguard.library.path" value="/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar"/>
</target>
<target name="-test-mac">
<condition property="is.macos">
<os family="mac"/>
</condition>
</target>