ant

Sign a launch4j executable in ant with sign4j and jsign

放肆的年华 提交于 2020-01-02 06:52:28
问题 I have an application in a Jar and I wrap it in a exe with launch4j so is easy for the user to launch it (in windows). I have a certificate, so I sign the jar (I don't know if this is really necessary because it will be wrapped inside the exe) and I want to sign the exe but it corrupt the executable. I use ant to make all the process and look like: <signjar jar="${jar.location}" alias="${key.alias}" storetype="pkcs12" keystore="${key.file}" storepass="${key.password}" tsaurl="https:/

How to make deleting .svn directories work using ant?

心不动则不痛 提交于 2020-01-02 05:25:07
问题 I tried the example in the manual: <delete includeemptydirs="true"> <fileset dir="${DIR}" includes="**/.svn" defaultexcludes="false"/> </delete> (where DIR is set to some directory) and it does nothing. How can this be made to work? I'm using ant 1.7.0. FYI: I've tried lots of different combinations of nested elements, dirset instead of fileset and it still doesn't work. :( 回答1: Why don't you just use svn export instead? Anyway, looks like ( from here ) the following should work: <echo level=

No resource identifier found for attribute 'hardwareAccelerated' when building with apache ant

佐手、 提交于 2020-01-02 03:44:07
问题 My app targeted to the android API level 7 (2.1) and under the Eclipse all work good (resulting APK also works fine on the 2.1 devices). I try to build app with the apache ant and got this error. All of the solutions for the same problems tells me that I must set another target API level. I want to simple ignore this attribute in manifest - as I find, in old devices it just ignored without any errors 回答1: I don't think it's possible to have hardware acceleration with API level less than 11.

Passing command line arguments to Java via ant build script

◇◆丶佛笑我妖孽 提交于 2020-01-02 02:59:05
问题 On running the following command: ant targetname -Dk1=v1 -Dk2=v2 I want the command line parameters passed down to java , like java whatever -Dk1=v1 -Dk2=v2 . I need to access these parameters from Java code with System.getProperty or System.getenv . What do I need to write in my ant build script to make this happen? Or should I take some other approach altogether? 回答1: I'm not sure exactly how you want to pass these values, but there are several mechanisms: Use <sysproperty> to pass system

How to execute jar with command line arguments [duplicate]

旧街凉风 提交于 2020-01-02 02:51:23
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Passing arguments to JAR which is required by Java Interpreter how to provide command line input to a file which is in a jar I have a jar file hello.jar with some say execute.java file which i want to execute from command line with two arguments;how can i achive this i have mentioned a executable.java as a main class in a manifest file and using ant i have to run this file from ant run with command line

Why Phing/Ant over Bash and Make? [closed]

你说的曾经没有我的故事 提交于 2020-01-02 02:13:06
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I've been using Phing at work (it was set up when I got there), and thinking of using it for some personal projects. One thing I haven't got my head around yet though is what the big appeal is? What, if any, are the killer features of Phing or Ant? What are the big reasons

Ant task for generating ER diagram from JPA/Hibernate annotated classes

廉价感情. 提交于 2020-01-02 02:11:11
问题 Does anyone know of a tool that can do that? Linguine maps seems to only work on old hibernate xml files. And the hibernate tool task hbm2hbmxml seems to have a bug so that I can't do the two step process "annotations->hbmxml->diagram" Best, Anders 回答1: Not quite what you're looking for but you could use API Viz which automatically produces UML like diagrams from class hierarchies and can be augmented with doclet tags. You'd have to mark up your classes a little, but it's a great tool and

Using Ant to merge two different properties files

我与影子孤独终老i 提交于 2020-01-02 02:04:12
问题 I have a default properties file, and some deployment specific properties files that override certain settings from the default, based on deployment environment. I would like my Ant build script to merge the two properties files (overwriting default values with deployment specific values), and then output the resulting properties to a new file. I tried doing it like so but I was unsuccessful: <target depends="init" name="configure-target-environment"> <filterset id="application-properties

Using Ant to merge two different properties files

笑着哭i 提交于 2020-01-02 02:03:07
问题 I have a default properties file, and some deployment specific properties files that override certain settings from the default, based on deployment environment. I would like my Ant build script to merge the two properties files (overwriting default values with deployment specific values), and then output the resulting properties to a new file. I tried doing it like so but I was unsuccessful: <target depends="init" name="configure-target-environment"> <filterset id="application-properties

Determine which file has an error when running YUI compressor from Ant

≡放荡痞女 提交于 2020-01-02 01:19:26
问题 We compress our javascript (and css files) with YUI compressor during our ant build task running on our Jenkins CI Server. However, it is very difficult to determine which js files YUI compressor is having errors with. We see a bunch of things like: [minify-js] [ERROR] 3:35:unterminated string literal [minify-js] [minify-js] [ERROR] 3:35:syntax error [minify-js] [minify-js] [ERROR] 4:8:syntax error [minify-js] [minify-js] [ERROR] 1:0:Compilation produced 3 syntax errors. [minify-js] org