ant

Sublime Text 2 Ant Build Target: [Error 2] The system cannot find the file specified

那年仲夏 提交于 2019-12-13 04:16:17
问题 When I run the basic Ant Build from Sublime Text 2 (Ctrl+B), it works, but it runs all targets. I want to specify/override the default build target. I added a new build system like: { "cmd": ["ant", "my_target"] } But it fails with: [Error 2] The system cannot find the file specified [Finished] Whats wrong? 回答1: The sublimetext buildsystems documentation page show how you can make a special case to execute "ant.bat" instead of "ant" on Windows. See the section "Platform-specific Options": The

Ant - build script does not find pathelement defined in a properties file

百般思念 提交于 2019-12-13 04:15:30
问题 I have an ant build script that has the following targets: <target name="_initLiveProps"> <property file="buildscripts/live.properties"/> </target> <target name="buildLive" depends="_initLiveProps"> <property file="buildscripts/live.properties"/> </target> Within the build script i have several pathelements declared as shown below: <path id="project.class.path"> <pathelement location="./../lib/log4j-1.2.16.jar" /> <pathelement location="${product-def.jar}"/> </path> The product-def.jar

Install Spring through maven

这一生的挚爱 提交于 2019-12-13 04:14:34
问题 I am new in using maven, I am having a java class as follow: import org.springframework.context.ApplicationContext; import org.springframework.context.support.ClassPathXmlApplicationContext; public class DecoupledDataReaderClient { private IReader reader = null; private ApplicationContext ctx = null; public DecoupledDataReaderClient() { ctx = new ClassPathXmlApplicationContext("basics-reader-beans.xml"); } private String fetchData() { reader = (IReader) ctx.getBean("reader"); return reader

Use Ant <modified> selector with arbitrary date

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-13 03:59:27
问题 As part of a content migration project, I am building content into a CMS on a weekly basis, and I use an Ant script to copy the content files to the build directory. Up until now, we've been wiping the CMS and reloading the whole 17,000-file set every time, which takes about 1.5 hours. But now that the content and the CMS customisations are more stable, we'd like to only upload the content files that have been modified since the previous week. I can copy files modified since the last time I

Jtl file is empty when running Jmeter using ant

假如想象 提交于 2019-12-13 03:56:59
问题 I am trying to run Jmeter with ant, (since I want to display the results of test, with all the steps). The issue is that after I managed to run the command the Jtl file is empty, I am trying to run the basic test.jmx default test. I run the command ant -Detest=Test run the build is successful but the jtl results are empty. moreover it is finished after one second, while if I run via UI mode it should take more time. Can someone please advise how to use ant with Jmeter, or how to get fully

How to find if a particular service is run/started when JBOSS AS is started?

醉酒当歌 提交于 2019-12-13 03:55:45
问题 Beginner here! I have two questions. Background: I have installed a program (following their installation instructions) by downloading a .zip file and then unzipping it, and then deploying it by executing ant deploy . According to the installation instructions, this deploys my program as a JBOSS AS Service. Now I want to run the service. According to the user manual of the deployed program, starting the JBoss Application Server will run the service. But the user manual instructs to run a

Extract all file name from fileset in XSLT 1.0

那年仲夏 提交于 2019-12-13 03:49:33
问题 build.xml file <fileset dir="Windows/" casesensitive="yes" id="filename.list"> <include name="file1.xml"/> <include name="file2.xml"/> <include name="file3.xml"/> </fileset> <pathconvert property="filename.list.csv" refid="filename.list" pathsep="," /> <xslt basedir="Windows/" destdir="/meta-inf" extension=".mf" style="test1.xslt" > <mapper type="glob" from="*.xml" to="test1.mf"/> <param name="build_date" expression="${build.date}"/> <param name="dir" expression="${windows.dir}"/> <param name

Unable to resolve .. resolve waits for ever while building red5 using ant and ivy

爷,独闯天下 提交于 2019-12-13 03:43:44
问题 I am following step by step for installation of RED5 in Ubuntu 9.04. While executing ant command, it waits forever at [ivy:resolve] :: resolving dependencies :: red5#server;working@satya-vbox4red5 [ivy:resolve] confs: [java6] in verbose mode, I saw that it is failing while searching for dependencies.. verbose output can be found at http://pastebin.com/uyaQ03cK I am accessing the internet through a proxy server which asks for authentication(userid and password). 回答1: Try configuring ANT to use

Why does junit complain about missing xsl files ?

萝らか妹 提交于 2019-12-13 03:41:31
问题 Im getting a complaint in my Ant build which refers to a missing junit file : /reports/style/junit-frames.xsl This error creeped up after I added the tag to my ant tasks, as a method for printing the failures of unit tests out . 回答1: JUnit frames expects XSL stylesheets to format the reports correctly. These are junit-frames.xsl and junit-noframes.xsl . You'll need to create these files, or copy them from somewhere. I guess you've defined a styledir which doesn't exist or something? See

How can I get JUnit test (driven from Ant script) to dump the stack of exception that causes failure?

有些话、适合烂在心里 提交于 2019-12-13 03:35:53
问题 We run JUnit test from Ant script, as follows. When the test failed, I expect it to output the stack dump of the exception that casuses the failure, but it doesn't. Is there any trick to get it dumped? <target description="Run JUnit tests" name="run-junit" depends="build-junit"> <copy file="./AegisLicense.txt" tofile="test/junit/classes/AegisLicense.txt" overwrite="true"/> <junit printsummary="yes" haltonfailure="no" fork="yes" forkmode="once" failureproperty="run-aegis-junit-failed"