dcsimg
ant build failing
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ciaran_brown
Posted On:   Friday, March 2, 2007 06:24 AM

Hi, does obfuscating jars in ant in windows not work? I have the following code & get the error that seems to be related to obfuscation. Author: Me Product: --> missing PROPERTIESLOADED, have you renamed ant.properties.sample to ant.properties? file="${elandlibs}" type="dir" /> Cannot find the shared 'javalibs' CVS project. Have you checked this project out of CVS and set the elandlibs property in ant.properties? missing environment variable OBFUSCATE_JAR from ant.properties    More>>


Hi,
does obfuscating jars in ant in windows not work? I have the following code & get the error that seems to be related to obfuscation.






Author: Me
Product:









missing PROPERTIESLOADED, have you renamed ant.properties.sample to ant.properties?


file="${elandlibs}"
type="dir"
/>
Cannot find the shared 'javalibs' CVS project. Have you checked this project out of CVS and set the elandlibs property in ant.properties?








missing environment variable OBFUSCATE_JAR from ant.properties



























































Generating code for XSD Schema: ${target_schema}


fork="yes" dir="${src}" classpathref="castor.classpath">






Deleting the directory: ${src}/com/elandtech/sims/config/castor}


































































basedir="${build}"
excludes="*"
includes="**/ghostengines/runway/** **/ghostengines/RunwayGhostEngine.class **/ghostengines/RequestResponsePair.class" />


basedir="${build}"
excludes="*"
includes="**/ghostengines/runway/** **/ghostengines/RunwayGhostEngine.class" />


basedir="${build}"
excludes="*"
includes="**/itc/** **/ghostengines/ITCGhostEngine.class" />


Obfuscate avoidance set to ${OBFUSCATE_JAR}







classpath="builder/proguard.jar" />


-injars ${dist}/lib/sims_unobf.jar
-outjars ${dist}/lib/sims.jar
-libraryjars ${java.home}/lib/rt.jar
-printmapping progaurd_mapping.txt


-keep public class com.elandtech.sims.Main {
public static void main(java.lang.String[]);
}

-dontshrink
-dontoptimize

-renamesourcefileattribute SourceFile
-keepattributes InnerClasses,SourceFile,LineNumberTable,Deprecated,Signature,*Annotation*,EnclosingMethod





-keep public class com.elandtech.sims.ghostengines.GhostEngine
-keep public class com.elandtech.sims.ghostengines.GhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine
-keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.SimsGhostEngine
-keep public class com.elandtech.sims.ghostengines.SimsGhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.RequestResponsePair
-keep public class com.elandtech.sims.ghostengines.RequestResponsePair {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.ITCGhostEngine
-keep public class com.elandtech.sims.ghostengines.ITCGhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine
-keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine {
public protected *;
}


-keep public class com.elandtech.sims.logging.LogManager
-keep public class com.elandtech.sims.logging.LogManager {
public protected *;
}
-keep public class com.elandtech.sims.logging.LogMessage
-keep public class com.elandtech.sims.logging.LogMessage {
public protected *;
}
-keep public class com.elandtech.sims.logging.LogGenerator
-keep public class com.elandtech.sims.logging.LogGenerator {
public protected *;
}
-keep public class com.elandtech.sims.logging.Log4jLogger {
public protected *;
}
-keep public class com.elandtech.sims.logging.LogListener. {
public protected *;
}
-keep public class com.elandtech.sims.logging.FileLogger {
public protected *;
}



-keep public class com.elandtech.sims.api.Handler
-keep public class com.elandtech.sims.api.Handler {
public protected *;
}
-keep public class com.elandtech.sims.api.RemoteClient
-keep public class com.elandtech.sims.api.RemoteClient {
public protected *;
}


-keep public class com.elandtech.sims.config.SimsSettings
-keep public class com.elandtech.sims.config.ConnectionSettings
-keep public class com.elandtech.sims.config.SimsSettings {
public protected *;
}
-keep public class com.elandtech.sims.config.ConnectionSettings
-keep public class com.elandtech.sims.config.ConnectionSettings {
public protected *;
}


-keep public class com.elandtech.eland.commonx.text.EString {
public protected *;
}

















































































depends="jar"
description="obfuscate the complete jar" if="obfuscate">


classpath="builder/proguard.jar" />




-injars distInternal/sims_temp.jar
-outjars distInternal/sims.jar
-libraryjars ${java.home}/lib/rt.jar
-printmapping progaurd_mapping.txt

-keep public class com.elandtech.sims.Main {
public static void main(java.lang.String[]);
}

-dontshrink
-dontoptimize

-renamesourcefileattribute SourceFile
-keepattributes InnerClasses,SourceFile,LineNumberTable,Deprecated,Signature,*Annotation*,EnclosingMethod


-keep public class com.elandtech.sims.ghostengines.GhostEngine
-keep public class com.elandtech.sims.ghostengines.GhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine
-keep public class com.elandtech.sims.ghostengines.SimsWithPaternMatchingGhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.SimsGhostEngine
-keep public class com.elandtech.sims.ghostengines.SimsGhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.RequestResponsePair
-keep public class com.elandtech.sims.ghostengines.RequestResponsePair {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.ITCGhostEngine
-keep public class com.elandtech.sims.ghostengines.ITCGhostEngine {
public protected *;
}

-keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine
-keep public class com.elandtech.sims.ghostengines.RunwayGhostEngine {
public protected *;
}


-keep public class com.elandtech.sims.logging.LogManager
-keep public class com.elandtech.sims.logging.LogManager {
public protected *;
}
-keep public class com.elandtech.sims.logging.LogMessage
-keep public class com.elandtech.sims.logging.LogMessage {
public protected *;
}
-keep public class com.elandtech.sims.logging.LogGenerator
-keep public class com.elandtech.sims.logging.LogGenerator {
public protected *;
}
-keep public class com.elandtech.sims.logging.Log4jLogger {
public protected *;
}
-keep public class com.elandtech.sims.logging.LogListener. {
public protected *;
}
-keep public class com.elandtech.sims.logging.FileLogger {
public protected *;
}



-keep public class com.elandtech.sims.api.Handler
-keep public class com.elandtech.sims.api.RemoteClient


-keep public class com.elandtech.sims.config.SimsSettings
-keep public class com.elandtech.sims.config.ConnectionSettings
-keep public class com.elandtech.sims.config.SimsSettings {
public protected *;
}
-keep public class com.elandtech.sims.config.ConnectionSettings
-keep public class com.elandtech.sims.config.ConnectionSettings {
public protected *;
}


-keep public class com.elandtech.eland.commonx.text.EString {
public protected *;
}








depends="readversion,jar,includeAllResources"
description="Generates all in one Jar file">










































































depends="readversion,compile,includeAllResources"
description="Generates all in one Jar file">




















Reading version information from file = ${app.version.file}
version = ${version}
cvsversion = ${cvsversion}



-->

































-->



















and I get th errors:
BUILD FAILED
C:myProjectssims uild.xml:487: The following error occurred while executing this line:
C:myProjectssims uild.xml:383: Expecting class path separator ';' before 'FilesJavajre1.5.0_09/lib/rt.jar' in argument number 1

can anyone help with this please?

   <<Less

Re: ant build failing

Posted By:   Robert_Lybarger  
Posted On:   Friday, March 2, 2007 08:49 AM

Comic book guy came around earlier and said: "Biggest ... unformatted ... code dump ... evar!"

Really -- no one will ever look through stuff you didn't bother formatting. In this case, even if you did, no one is going to wade through hundreds (from the looks of it) of lines of ant script either. If you ask a question online, reduce the problem to the minimum number of lines needed to show the problem, then bother to actually format your code dump in

 tags like the posting guidelines tell you. If you can't be bothered, neither can we.
About | Sitemap | Contact