ant

Can I use Ant with NetBeans PHP projects?

你说的曾经没有我的故事 提交于 2020-01-14 03:54:11
问题 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

iajc fails to weave aspects from a jar but succeedes from class files

牧云@^-^@ 提交于 2020-01-14 03:13:30
问题 So I defined iajc task for my project that does intertype declarations just fine, then there is a separate jar task that creates a project.jar. Then there is iajc task for junit test target, this task references the project.jar with the goal of weaving its ITDs into test classes like so: <aspectpath> <pathelement path="${dist}/project.jar"/> <fileset dir="${lib.aspect}"> <include name="**/*.jar" /> <include name="**/*.zip" /> </fileset> </aspectpath> That does not work - compiler produces

Jmeter+ant+jenkins集成

筅森魡賤 提交于 2020-01-13 22:14:58
已有jmeter、*.jmx脚本 一、jmeter-ant 1.下载安装ant,环境变量配置(检查是否安装成功) 2.将 JMeter 所在目录下 extras 子目录里的 ant-JMeter-1.1.1.jar 复制到 Ant 所在目录 lib 子目 录之下 3.配置 jmeter 的 bin 目录下的 jmeter.properties 文件,改为:   jmeter.save.saveservice.output_format=xml 4.建立build.xml 5.切换至含build.xml文件夹下,执行ant -buildfile build.xml;也可以直接执行ant 会默认查找build名字的目标文件,若目标文件名字非build,用前面方法执行。 ant的build.xml配置详解https://blog.csdn.net/mevicky/article/details/72828554 二、jenkins 1.从官网下载jenkins的war包,地址 https://jenkins.io/ 2.启动Jenkins服务   a.怎么启动Jenkins?     step1:进入到Jenkins的war包所在的目录。        step2:java -jar jenkins.war   b.启动Jenkins服务     net start jenkins (注

how do I extract the 1st element from a ant CSV property

房东的猫 提交于 2020-01-13 19:16:22
问题 given a CSV ant property, <property name="module.list" value="mod1,mod2,mod3,mod4,mod5"/> how can I just get the first element (ie "mod1" here)? I want to execute a command that will take in "mod1" as one of the arguments. Moreover.. I cannot modify this original "module.list" property to a list or anything else.. although I can create another list,property,etc from this.. Any help is appreciated.. Thanks 回答1: This is one way to accomplish what you described. Write the CSV to a temporary file

Sonar Scanner engine is not started

风流意气都作罢 提交于 2020-01-13 19:14:10
问题 I follow the instruction at Analyzing with SonarQube Scanner for Ant to analyzing an ant project and got following error: Buildfile: C:\Projects\my-sonar\build.xml [echo] Build properties read from build.properties clean: sonar: [sonar:sonar] Apache Ant(TM) version 1.9.4 compiled on April 29 2014 [sonar:sonar] SonarQube Ant Task version: 2.5 [sonar:sonar] Loaded from: file:/C:/Projects/my-sonar/.ant/lib/sonarqube-ant-task-2.5.jar [sonar:sonar] User cache: C:\Users\test\.sonar\cache [sonar

java.uti.zip.ZipException error while calling a ant target

白昼怎懂夜的黑 提交于 2020-01-13 19:12:13
问题 While calling a ANT target, I am getting the below error. I tried my level best solve the issue but not. Unable to obtain resource from C:\uiunit\log4j.properties: java.util.zip.ZipException: error in opening zip file [junit] Unable to obtain resource from C:\uiunit\log4j.properties: [junit] java.util.zip.ZipException: error in opening zip file [junit] at java.util.zip.ZipFile.open(Native Method) [junit] at java.util.zip.ZipFile.<init>(ZipFile.java:214) [junit] at java.util.zip.ZipFile.<init>

How do I intercept or elevate log messages when calling an Ant task from Gradle

泄露秘密 提交于 2020-01-13 10:09:09
问题 I call ant.signjar from a gradle script. How can I capture its output? I did neither get it managed easily to elevate the output from INFO to another level, nor to intercept or wrap the output to error warnings out to WARN level. Currently the signjar echoes out that the certificate will expire soon, but this is not shown on WARN level which is not so nice. 回答1: I assume the Ant task is using Ant's logging framework, and not just printing to standard out. In that case, have you tried the

How do I include a jar file into a lib folder of an ear file using ant?

大兔子大兔子 提交于 2020-01-13 10:04:37
问题 I have the following folder structure: project.ear lib folder ProjectEJBClient.jar META-INF folder projectEJB.jar My build.xml contains the following lines to create EAR package <ear destfile="${build.dir}/myapp.ear" appxml="${src.dir}/metadata/application.xml"> <fileset dir="${build.dir}" includes="ProjectEJBClient.jar"/> <fileset dir="${build.dir}" includes="projectEJB.jar"/> </ear> The above code can't create an EAR package with lib folder which includes the ProjectEJBClient.jar file I

ANT How to delete ONLY empty directories recursively

早过忘川 提交于 2020-01-13 08:06:08
问题 Does anyone know how to recursively delete "empty" directories with ANT (empty includes directories that only contain ".svn" etc). I know ant allows you to "includeEmptyDirs=true" but I want it to ONLY delete a directory if it is empty (and actually I'd probably need to walk up the recursive chain and delete the directory it was contained in if it is now empty). Basically as part of our build process we copy over a set of directories that contain a bunch of other nested directories containing

ANT How to delete ONLY empty directories recursively

只谈情不闲聊 提交于 2020-01-13 08:04:04
问题 Does anyone know how to recursively delete "empty" directories with ANT (empty includes directories that only contain ".svn" etc). I know ant allows you to "includeEmptyDirs=true" but I want it to ONLY delete a directory if it is empty (and actually I'd probably need to walk up the recursive chain and delete the directory it was contained in if it is now empty). Basically as part of our build process we copy over a set of directories that contain a bunch of other nested directories containing