ant

Passing Arg in Ant

社会主义新天地 提交于 2019-12-23 05:39:35
问题 I am working on Ant Script with following code block: <target name="phplint"> <apply dir="${dir.publish.php}" executable="${tool.php.lint}" parallel="true" failonerror="false"> <fileset dir="${dir.publish.php}"> <include name="**/*.php"/> </fileset> <arg value="-l" /> <srcfile/> <mapper type="glob" from="*.php" to="*.html"/> </apply> </target> The command which i want to run is as below: php -l index-1.php > index-1.html How can i do it...! because above code is working. but i don't want <arg

JavaFX Self-Contained Application Packaging for Mac without JRE

戏子无情 提交于 2019-12-23 05:39:12
问题 I have a JavaFX 8 desktop application and I'm creating an .app application bundle to distribute the application to Mac users. To keep the size down, I create a bundle that doesn't contain the JRE (the user must have Java already installed to use the generated bundle). My build is a Gradle script but since the Oracle “Self-Contained Application Packaging” tool works with Ant, I make a call out to an Ant script as follows: ant.importBuild 'mac-bundle-ant.xml' The Ant script itself then looks

Can i compile java for an older Java version with ant with a newer JDK so it generates output when it compiles code that uses the newer API?

五迷三道 提交于 2019-12-23 05:27:49
问题 I would like to only have JDK 8 installed on my system, and have the ant javac compile action create working classfiles for a java 6 environment. This sort of works if I syntactically only use java 6 compliant code, but my code can access methods/classes of the java 8 API and still be java 6 compliant according to ant's compile action. This is even the case when using the "javac" task attributes "source" and "target" set to java 6. I am aware that this generates the following warning: [javac]

Override one value in properties file

≯℡__Kan透↙ 提交于 2019-12-23 05:21:04
问题 I have a properties file: custom.properties the content of this properties file is: id=sf2j2345kkklljhlaasfsdfafsf543 name=SOME_NAME The value of id is a long random string. I want to make an Ant script to replace/over-write the value of id to another one, I tried with Ant <replace> syntax: <target name="change-id"> <replace file="custom.properties" token="id" value="aaa" /> </target> I run ant change-id , the content of the properties file becomes: aaa=sf2j2345kkklljhlaasfsdfafsf543 name

problems creating war file

邮差的信 提交于 2019-12-23 05:16:13
问题 i am having issues deploying my spring app to tomcat 7 with the following error: C:\Users\xxxxxx\Work\Online Racing League\build.xml:61: Problem creating war: C:\Program Files\Apache Software Foundation\Tomcat 7.0\webapps\Online Racing League.war (Access is denied) (and the archive is probably corrupt but I could not delete it) Here is what my build.properties looks like: # Ant properties for building the springapp appserver.home=C:/Program Files/Apache Software Foundation/Tomcat 7.0 # for

EclipseLink 2: ANT Task Error

為{幸葍}努か 提交于 2019-12-23 05:06:29
问题 I got this ANT task: <javac verbose="on" srcdir="${src.dir}" destdir="${build.dir}/${context.path}/classes" debug="${compile.debug}" debuglevel="${javac.debuglevel}" optimize="${compile.optimize}" deprecation="${javac.deprecation}" failonerror="true"> <compilerarg value="-Aeclipselink.persistencexml=${web.dir}/META-INF" compiler="javac1.6" /> <compilerarg line=" -processor org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor" /> <compilerarg line=" -proc:only" compiler=

cucumber.runtime.CucumberException: Failed to instantiate class

最后都变了- 提交于 2019-12-23 04:57:07
问题 Here is my cucumber base class. @CucumberOptions(plugin = "json:target/cucumber-report.json", features="SFDC_Automation/features/featurefilename.feature", glue="classpath:tests.SFDC.StepDef") public class InsideSaleTest extends AbstractTestNGCucumberTests { } And after running this base class, I am seeing following exception. cucumber.runtime.CucumberException: Failed to instantiate class tests.SFDC.InsideSale.InsideSaleEndToEnd ===============================================

How Can I Use fdt.launch.Application for AIR Projects & FDT 5.5

房东的猫 提交于 2019-12-23 04:47:13
问题 i'm trying to run this on an AIR Mobile project.. <fdt.launch.application projectname="TestAndroid" mainclass="src/com/powerflasher/SampleApp/TestAndroid.as" debug="false" target="../bin/TestAndroid.swf" startswf="false" /> gives the following error.. fdt.launch.Application does not support AIR Projects. is there an alternative to this? 回答1: Yes and no. Yes FDT 5.5 offers a new 'fdt.invoke.launchConfiguration' task. To enable the execution of launch configurations in an ANT environment. Watch

Change baseDir attribute while using import tag

蹲街弑〆低调 提交于 2019-12-23 04:44:02
问题 Let me first provide the background of the problem I'm facing. I have a directory structure as below. c:\myDirectory c:\myDirectory\Project1 c:\myDirectory\Scripts Under the c:\myDirectory\Scripts there is a script that download the source code (from svn) and creates the c:\myDirectory\Project1 directory. I have another ant scripts ( c:\myDirectory\Scripts**compile-source.xml ) that compiles the Project1 from an ant script build.xml that is downloaded to c:\myDirectory\Project1 Snippet for c:

iterate over unknown number of properties using ant and search and replace

早过忘川 提交于 2019-12-23 04:24:17
问题 I have an ant "properties" file that looks like this (although I can adjust the format if needed - I can make it an XML file if that's more appropriate): libraries.properties name 1 http://www.url1.com?a=b name 2 http://www.url2.com?c=d name 3 http://www.url3.com?e=f NOTE: I know this is not a valid properties format because it's not in the form a=b. I can change it to anything that's appropriate, as long as it's easy to add entries in future. I want ant to take a file that is checked-in as