![]() ![]() Please make sure you set setCheckJar(false). For classes it will be $PROJECT_HOME/stringer-configs-enabled/classes.xml, and for JARs - $PROJECT_HOME/stringer-configs-enabled/.xml (see lines 51+ and 83+). This script also looks for custom configuration files for your JARs and classes, by default it looks for them in $PROJECT_HOME/stringer-configs-enabled. jar" ) (Line 72) you could list comma-separated patterns of files that must be included, for example fs.setIncludes( "jcb.jar, *licel.jar, core-2.4.0.jar" ) You could use exclusions (line 74), as well, please refer to. Class filters are available as well, see examples in the code. Change Stringer’s configuration (if it is needed) in the task (two sections, the first one is for classes, the second is for libs), by default String Encryption, Check Caller and Integrity Protection are enabled both for classes and libs. Modify the value of the property in the task (Line 09)Ĭ. Modify the value of the property in the task (Line 11).ī. Let's assume you saved the code above into the stringer-war-protection.xml, then you might execute the task by launching: ant -f stringer-war-protection.xmlĪ. This way gives you ease and flexibility in configuration. You might use the similar approach when you need to protect multiple JAR files. Here is a simple Ant task (+JavaScript) that is suitable for WAR files protection ( Download). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |