ant

ANT - how to use exclude, excludesfile with javac?

懵懂的女人 提交于 2020-01-14 13:31:29
问题 Looked at several post on stackoverflow as well as other sources (online + ANT definition guide book) but none of them helped so far. I can't exclude the file from compiling. I have just one file that wants to exclude from compiling and ANT documentation is not really telling the detail. I'm trying to exclude HTMLParser.java from compiling. Also tried using excludesfile too. But it still complies HTMLParser.java I wrote simple ANT to examine trying different variation below. Could anyone tell

ANT - how to use exclude, excludesfile with javac?

北城以北 提交于 2020-01-14 13:31:28
问题 Looked at several post on stackoverflow as well as other sources (online + ANT definition guide book) but none of them helped so far. I can't exclude the file from compiling. I have just one file that wants to exclude from compiling and ANT documentation is not really telling the detail. I'm trying to exclude HTMLParser.java from compiling. Also tried using excludesfile too. But it still complies HTMLParser.java I wrote simple ANT to examine trying different variation below. Could anyone tell

How can I sign and deploy a JavaFX application into a single .JAR?

独自空忆成欢 提交于 2020-01-14 12:44:15
问题 I'm still learning the ins and outs of JavaFX. One major difference is that in the dist folder (in addition to the library) I find besides the .jar file, an HTML file and a JNLP file, neither nor of which is any use to me (this will be a desktop application). I found the following (Properties omitted because of sensitive/irrelevant information): <delete dir="${store.dir}"/> <mkdir dir="${store.dir}"/> <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip"> <zipgroupfileset dir=

How can I sign and deploy a JavaFX application into a single .JAR?

巧了我就是萌 提交于 2020-01-14 12:42:50
问题 I'm still learning the ins and outs of JavaFX. One major difference is that in the dist folder (in addition to the library) I find besides the .jar file, an HTML file and a JNLP file, neither nor of which is any use to me (this will be a desktop application). I found the following (Properties omitted because of sensitive/irrelevant information): <delete dir="${store.dir}"/> <mkdir dir="${store.dir}"/> <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip"> <zipgroupfileset dir=

ant check classpath for jar before taskdef

筅森魡賤 提交于 2020-01-14 10:37:40
问题 Is there a way to check the classpath for a jar before executing a taskdef . For example, I want to surround the following with a condition that checks if a jar that can has the class org.hibernate.tool.ant.HibernateToolTask before executing the taskdef <taskdef name="hibernatetool" classname="org.hibernate.tool.ant.HibernateToolTask" classpathref="hibernatetool-classpath" /> 回答1: This should work: <available property="hibernatetoolok" classname="org.hibernate.tool.ant.HibernateToolTask"

Java application reads UTF-8 encoded text files but after ant build the characters are not as expected

孤人 提交于 2020-01-14 10:27:08
问题 I have a Java project that reads UTF-8 encoded .txt files in order to construct strings that are displayed. Running in Eclipse the files are read and displayed as expected but after my ant build the characters are not coming out as they should. Here is my build.xml file <?xml version="1.0"?> <project name="Rutherford" default="jar"> <property name="libsSrc" value="libs"/> <property name="build" value="build"/> <property name="classes" value="build/classes"/> <property name="jar" value="build

where the heck is org.hibernate.tool.ant.HibernateToolTask?

人盡茶涼 提交于 2020-01-14 07:30:09
问题 Where the heck do I get org.hibernate.tool.ant.HibernateToolTask ? I can't seem to find a .jar file that contains it. 回答1: Download Hibernate Tools - it's in hibernate-tools.jar located in plugins\org.hibernate.eclipse_3.2.4.CR2-R200901280154\lib\tools 回答2: I got the latest (hibernate 4) version of hibernate-tools.jar ( hibernate-tools-4.3.1.Final.jar ) like this: Get the jar for Hibernate tools v. 4.3.1: Dowload JBossTools 4.3.0 from http://tools.jboss.org/downloads/jbosstools/mars/4.3.0

Ant script failing with error “source file does not exist” despite the file exists,

佐手、 提交于 2020-01-14 04:18:26
问题 below is the script I am using and it is failing with error : java.lang.RuntimeException: Source File: ../CalcMgr/exploded/ear/adf/META-INF/adf-config.xml does not exist. I tried running it locally and the build.xml works. But in jenkins server though the file exists it is failing with that error. <echo message="Replacing '#\{JAVASCRIPT_VERSION\}' with '${env.JAVASCRIPT_VERSION}' in file: '${exploded}/ear/adf/META-INF/adf-config.xml'" /> <refactorbuildno fileName="${exploded}/ear/adf/META-INF

Convert Ant build file to Makefile

馋奶兔 提交于 2020-01-14 04:07:33
问题 I have Ant build file which is used in Docbook. Now I am going to convert that Ant build file to a Makefile which uses Xsltproc processor. I am not particularly familiar with either Makefile or Ant. So please help me to convert it. Are there any resources which I should follow? Here I want to, 1. copy folder structure and its content into another folder 2. configure java system properties 3. configure classpath In ant script, it has code like this, <copy todir="${output-dir}"> <fileset dir="$

Can I use Ant with NetBeans PHP projects?

与世无争的帅哥 提交于 2020-01-14 03:54:26
问题 I would like to use Ant with some of my PHP projects but I'm not sure how. I tried creating a build script with a few targets but couldn't execute any of them from within Netbeans - there's simply no option to. Is this feature supported in this context or not? If yes, then how do I use it (I must obviously be missing something in this case). I'm using NetBeans 6.7.1 (Ant plugin is installed). 回答1: Yes you can. It's described on sun blog and according to date of the post, the posibility is