ant

Jenkins Error: No test report files were found. Configuration error?

强颜欢笑 提交于 2020-01-05 05:35:08
问题 I can't figure out why I have this error. I've installed ant via jenkins on windows. My project is called test-freestyle and is held at: C:\Program Files (x86)\Jenkins\workspace\test-freestyle I've manually created an empty Reports folder inside that test-freestyle folder and am trying to follow this tutorial and this StackOverflow post to troubleshoot. Here is the folder structure, proof that jenkins sees the directory build failure image Is it becasue Program Files needs admin rights to

Ant not working with Jenkins within a Docker container

落爺英雄遲暮 提交于 2020-01-05 04:51:24
问题 I want to have my Jenkins CI in a Docker container. I've pulled the Jenkins Docker image and started it following the documentation: sudo docker run -p 8080:8080 -p 50000:50000 -v /var/jenkins_home:/var/jenkins_home jenkins Jenkins is started okay, I configure the job for the project using Ant as build tool. When I run the job, Jenkins throws the following error regarding to Ant (regardless the configured build target): ERROR: command execution failed.Maybe you need to configure the job to

Creating a .deb with Apache Ant and without dpkg

ぐ巨炮叔叔 提交于 2020-01-05 02:53:08
问题 I'm trying to create a buildfile for creating .deb installation files. So far, so fine. My goal is to avoid dpkg, so that the build can be done from any plattform. Now that I created all the artifacts (control.tar.gz, data.tar.gz, debian-binary) I need an Ant-Task to package these Files in a deb-File. A deb File is just an Ar(l)-Archive, but I couldn't figure out how to create such an Archive with Ant. I just found some "ArFileSet", so I think there is a possibility, but I don't know how and

Python 用 os.walk 遍历目录

强颜欢笑 提交于 2020-01-04 16:49:11
今天第一次进行 文件遍历,自己递归写的时候还调试了好久,(主要因为分隔符号的问题),后来发现了os.walk方法,就忍不住和大家分享下. 先看下代码: import os for i in os.walk('c:'+os.sep+'ant'): print i[1] 下面是输出: c:\ant c:\ant\bin c:\ant\docs c:\ant\docs\ant2 c:\ant\docs\antlibs c:\ant\docs\antlibs\antunit c:\ant\docs\antlibs\compress c:\ant\docs\antlibs\dotnet c:\ant\docs\antlibs\props c:\ant\docs\antlibs\svn c:\ant\docs\images c:\ant\docs\manual c:\ant\docs\manual\api c:\ant\docs\manual\api\org c:\ant\docs\manual\api\org\apache c:\ant\docs\manual\api\org\apache\tools c:\ant\docs\manual\api\org\apache\tools\ant c:\ant\docs\manual\api\org\apache\tools\ant\dispatch

How to retrieve information from antrun back to maven?

拜拜、爱过 提交于 2020-01-04 11:46:20
问题 How can I get information from maven-antrun-plugin back to Maven script? For example: [...] <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>test</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <exec ... resultproperty="foo"> </target> </configuration> </execution> </executions> </build> [...] I'm interested to use this foo property later in Maven. How to it get out of antrun ? 回答1: I am not sure if this solution

How to retrieve information from antrun back to maven?

最后都变了- 提交于 2020-01-04 11:46:06
问题 How can I get information from maven-antrun-plugin back to Maven script? For example: [...] <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.6</version> <executions> <execution> <phase>test</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <exec ... resultproperty="foo"> </target> </configuration> </execution> </executions> </build> [...] I'm interested to use this foo property later in Maven. How to it get out of antrun ? 回答1: I am not sure if this solution

Building Java with ANT from Team Build Extensions 2010

无人久伴 提交于 2020-01-04 07:11:14
问题 I have a basic C# project, but I want to kick off an ANT build (which compiles some very basic java code) and also fires a junit test. How can I find out from Team Build 2010 (TFS 2010 basically), if the junit test fails? If it does, I will fail the TFS build. I have the build extensions and I am using TFS 2010. However, the documentation for this is not existant. Thanks 回答1: You can use the Exec Activity to call an exe to build and do the tests. However you may want to look at Final Builder

Separate same jars in different WAR of a EAR

给你一囗甜甜゛ 提交于 2020-01-04 06:44:11
问题 currently we are facing one problem. We are building a ear which contains multiple war files. In 2 of the WARs contains same jars. Both these wars need these jars during deployment.So Is there any way in ANT I can built it so that these jars will be in one single place and it will not create any problem during the ear deployment. 回答1: well, you can do it the portable way: Place the library jars at the root of .ear file. Example: library jar -> lib1.jar, lib2.jar [EAR STRUCTURE] your.ear |-

Separate same jars in different WAR of a EAR

☆樱花仙子☆ 提交于 2020-01-04 06:44:09
问题 currently we are facing one problem. We are building a ear which contains multiple war files. In 2 of the WARs contains same jars. Both these wars need these jars during deployment.So Is there any way in ANT I can built it so that these jars will be in one single place and it will not create any problem during the ear deployment. 回答1: well, you can do it the portable way: Place the library jars at the root of .ear file. Example: library jar -> lib1.jar, lib2.jar [EAR STRUCTURE] your.ear |-

Ant task vs Shell script

余生颓废 提交于 2020-01-04 06:43:30
问题 I see a lot of places in my office where ant tasks are used to move files from one place to another and also do some tasks on these files.However all this can be done with shell scripts . My question is , In what cases is ant preferred over shell scripts ? What are the benefits of using ant over a shell scripts for doing same set of tasks. One advantage ant has is that it works on all platforms,other than that are there any performance related advantages ? 回答1: Your question as to why ANT