ant

Executing a Java running application from a Jar or Batch file

旧街凉风 提交于 2019-12-23 04:22:01
问题 I have a Java application and a build file which, among its tasks, has one task to create a jar file from the application and one to run the application <!-- ===== Create An Executable Jar target ======--> <target name="jar-task" depends="compile-task"> <mkdir dir="${jar.dir}"/> <jar destfile="jar/Guix.jar" basedir="${gui_bin.dir}"> <fileset dir="${basedir}"> <include name="img/**/" /> </fileset> <manifest> <attribute name="Main-Class" value="sys.deep.cepu.Start"/> </manifest> <filelist dir="

Environment Variable errors - not recognized as an internal or external command

喜夏-厌秋 提交于 2019-12-23 04:21:07
问题 This is a rewrite to consolidate what I have picked up searching for answers to resolve my problem. I had installed Ant. When I used "ant" on the Command Line, I got the message "ant is not recognized as an internal or external command, operable program or batch file." I quickly established this was a problem with my Environmental Variables. I am assuming you have already got instruction on changing your Environmental Variables. The bullet points below cover the finicky bits, the assumed

Is it possible to pass custom ANT parameters into custom plugin with DITA-OT?

一笑奈何 提交于 2019-12-23 04:09:43
问题 I have created DITA-OT PDF plugin that works good and like it should. Next step is to pass ANT parameters into my custom plugin's overriding XSLT files. As you can see this extends pdf2 plugin processing and I have custom stylesheets which are working. Here is documentation about how to do this. This works for default plugins (pdf2, xhtml. etc) http://dita-ot.github.io/1.8/dev_ref/plugin-xsltparams.html But when I try to do the same trick for my own plugin I never can run integration through.

using ant ivy in netbeans

本秂侑毒 提交于 2019-12-23 04:05:31
问题 Since I am new to Ant+Ivy this might sound very naive question but please bear with me. I recently installed Ivy plugin to work with netbeans. But I don't know what to do next? Do I have to create ivy.xml file myself ? do I have to add its reference to nbbuild.xml somewhere? if yes where? and finally how to write ivy.xml to fetch latest versions of the libraries I am using. e.g. I am using jgraph.jar, commons-codec-1.6.jar etc, Can somebody demonstrate how to write code in ivy.xml file to

Ant BuildException error building Hadoop 2.2.0

丶灬走出姿态 提交于 2019-12-23 04:03:16
问题 I've been having trouble to build Hadoop 2.2.0 using Maven 3.1.1, this is part of the output I get (full log at http://pastebin.com/FE6vu46M): [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Apache Hadoop Main ................................ SUCCESS [27.471s] [INFO] Apache Hadoop Project POM ......................... SUCCESS [0.936s] [INFO] Apache Hadoop Annotations ......................... SUCCESS [3.819s] [INFO] Apache

Increasing permgen space for Cobertura ant task running from Gradle

别等时光非礼了梦想. 提交于 2019-12-23 03:56:05
问题 I'm getting the following trying to run Cobertura as part of my Gradle build. :cobertura Instrumenting classes for Cobertura Exception in thread "Test worker" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space I've tried bumping up DEFAULT_JVM_OPTS / -XX:MaxPermSize in my gradle wrapper script, to no effect. Is there a more direct (and effective) way to do this? 回答1: The only thing that worked for me was changing the .bashrc on my Linux box to have export

Making Jenkins build fail when Selenium tests fail

做~自己de王妃 提交于 2019-12-23 02:57:25
问题 I have setup a Jenkins server for running Selenium tests. The build script is written in Ant (v 1.7.1 on CentOS 6.3) and the tests run on Sauce Labs. I execute the build via shell: ant -buildfile build.xml The problem is when a test fails, Jenkins marks it a success. I can avert this by setting haltonfailure to true , see: <junit printsummary="yes" fork="false" haltonfailure="yes"> <classpath refid="run.cp" /> <formatter type="xml" usefile="true" /> <batchtest fork="no" todir="test-output/xml

Sonarqube set leak period to specific version other than previous version

你。 提交于 2019-12-23 02:49:05
问题 Evaluating Sonarqube (Version 5.4), we want to migrate our current workflow using another Audit tool, which works like that : The current version that runs in production is our reference version. A new development version is checked out from GIT, a diff process calculates the new and modified files vs. the reference version and starts the audit for these files. There's also a slightly different handling of legacy code (components that already existed in 2012) and new components (after 2012).

FXML layout not loaded when run jar outside Eclipse

社会主义新天地 提交于 2019-12-23 02:46:23
问题 I try to load my fxml layout file as follows: FXMLLoader loader = new FXMLLoader(); loader.setLocation(getClass().getResource("view/MainLayout.fxml")); AnchorPane personOverview = (AnchorPane) loader.load(); When I run application in Eclipse all works, but when I deployed application with Ant, I've got an error: After building project my folder structure is: and the same in deployed jar I understand that there might be a problem with difference in resolving path inside jar and in eclipse, but

Maven build-helper-maven-plugin regex unable to use property as dependency.version

点点圈 提交于 2019-12-23 02:43:06
问题 I'm trying to use the build-helper-maven-plugin regex to convert a default property before it is used in the dependency section. My pom.xml file property sections looks like this... <properties> <some.version>114.6.9</some.version> </properties> My pom.xml file build plugin section looks like... <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> <version>1.9</version> <executions> <execution> <id>regex-property</id> <goals> <goal>regex