ant

Check if two antcalls are successfull

十年热恋 提交于 2019-12-23 19:45:39
问题 I'm extremely new to ant script and i want to find out if my build is successful or not. my main target has two antcalls and i don't know how to check if they were successful or not, in order to evaluate the main target. run all is my main target <target name="run all"> <antcall target="Run basic configuration" /> <antcall target="Run custom configuration"/> i want to add a fail condition for the "run all" target. Each target does check individually if they are successful, but I want to know

Java ant Eclipse run error [duplicate]

旧城冷巷雨未停 提交于 2019-12-23 19:07:16
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: ant error JAVA_HOME does not point to SDK I'm getting the following error: BUILD FAILED C:\Users\myname\Documents\CMSC\Proj1\build.xml:22: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files (x86)\Java\jre7" Total time: 1 second My build.xml file contains the following code: <project name=

getting Ant build error: Cannot run program “python”

我是研究僧i 提交于 2019-12-23 18:52:57
问题 This is the build file: <exec executable="python" failonerror="true"> <arg line="${installer.izpack.dir}/utils/wrappers/izpack2exe/izpack2exe.py"/> <arg line="--file=${basedir}/installer/EasyIT-installer.jar"/> <arg line="--output=${basedir}/installer/EasyIT-installer.exe"/> <arg line="--no-upx"/> </exec> And the output: BUILD FAILED E:\Java Projects\Spark Projects\EastIT - Copy\build\build.xml:873: Execute failed: java.io.IOException: Cannot run program "python" (in directory "E:\Java

Cannot create stored procedure from .sql file - JDBC

醉酒当歌 提交于 2019-12-23 18:24:15
问题 I am trying to execute a .sql file during the installation of my web project by using jdbc. 2 options suggested from google: either parsing the script manually (by splitting the ";" character) or using ant. I prefer the simple way so ant is a good choice. This is the code i use to set up the database: public void executeSql(String sqlFilePath) { final class SqlExecuter extends SQLExec { public SqlExecuter() { Project project = new Project(); project.init(); setProject(project); setTaskType(

ANT: Copy contents of multiple filesets with same files in order of priority

廉价感情. 提交于 2019-12-23 18:03:26
问题 I'm trying to build a web application which takes it's class files from multiple locations. These locations can contain the same class files. I need to be able to specify a priority so that some locations take priority over others when copying the classes across. We have separate ant scripts which build the WAR file. This build is to hotswap in any changed classes whilst I am developing. So this build must be quick. For example, my two class locations are: /bin /build/classes I want classes

Can NetBeans auto-build java free-form (Ant) projects?

杀马特。学长 韩版系。学妹 提交于 2019-12-23 18:01:02
问题 After every save I need to right-click on the project in the project browser and click on build . Is there a way to configure NetBeans to auto-build the project when I save a file? 回答1: See Compile on Save FAQ: http://wiki.netbeans.org/FaqCompileOnSave I don't use CoS myself, I highly recommend Jenkins for your auto-build needs (and so much more): http://jenkins-ci.org/ 回答2: The compile on save option is not available for free-form projects as of NetBeans version 8.0. And I don't think it

ant执行Jmeter用例的build.xml

你说的曾经没有我的故事 提交于 2019-12-23 17:54:58
<?xml version="1.0" encoding="UTF-8"?> <project name="Jmeter-TestCase" default="run" basedir="."> <tstamp> <format property="time" pattern="yyyyMMddhhmm" /> </tstamp> <!--jmeter的目录--> <property name="jmeter.home" value=" D:\app\apache-jmeter-2.13 " /> <!-- jmeter生成jtl格式的结果报告的路径--> <property name="jmeter.result.jtl.dir" value=" D:\app\JmeterReport \jtl" /> <!-- jmeter生成html格式的结果报告的路径--> <property name="jmeter.result.html.dir" value=" D:\app\JmeterReport \html" /> <property name="ReportName" value="TestReport" /> <property name="jmeter.result.jtlName" value="${jmeter.result.jtl.dir}/${ReportName

Ant inheriting Maven properties

喜你入骨 提交于 2019-12-23 17:51:23
问题 I am considering converting an Ant/Ivy project to Ant/Maven-Ant-Tasks. I do not want to use Maven by itself because I need more control over the build process. Is there any way for the Ant build.xml file inherit properties set in the pom.xml file? I have been creating a generic build.xml file that can be used across several projects and loads a project-specific project.properties file, but it would be nicer if I could put all of those properties in the pom.xml file. Thanks. 回答1: I use the

Execute Java programs in a consistent environment

霸气de小男生 提交于 2019-12-23 16:43:41
问题 Where I work we have a shell script that allow us to execute arbitrary Java classes with all the necessary libraries and settings, something like: #!/bin/sh $JAVA_HOME/bin/java -cp LONG_LIST_OF_JARS -Xmx6g -XX:MaxPermSize=128m "$@" And used like so: javacorp.sh com.mycorp.SomeJob This is obviously better than needing to specify all the java arguments explicitly every time, but I dislike that it's only manually connected to the jars configured in our Eclipse project for compiling the codebase.

ANT job to invoke JDeveloper to create EAR file with specified deploy file

倖福魔咒の 提交于 2019-12-23 16:35:47
问题 I was asked about the possibility of creating an ANT script that could be use to copy property files (associated to target environment), create an EAR file (perhaps using JDeveloper deploy file), and deploy that EAR file to target OC4J container. I am asking if anyone ever successfully invoking JDeveloper automatically to create the EAR file by using specified 'deploy' file by using ANT? OR is it possible to by pass invoking JDeveloper at all. Is there any sample ANT code snippet to do so, or