ant

Sonar - Fail to request server version | HTTP Status 404

一个人想着一个人 提交于 2019-12-07 18:52:19
问题 I'm setting up a sonar system for Java. My local test SonarServer 4.0 successfully connect and process my antscript (I'm using "sonar-ant-task-2.2.jar"). But my target server 3.7.3 won't even provide the server version. I tried the given http://... from the given errormessage and my browser (firefox) is showing the correct server version. Can someone help me out with this one ? Thx :) PATH2ANTSCRIPT\build.xml:159: java.lang.IllegalStateException: Fail to request server version at org.apache

Invoking FindBugs from Ant: passing a space-separated list of files to java

不羁的心 提交于 2019-12-07 18:14:25
问题 I'm trying to invoke FindBugs from inside Ant. In order to control the amount of memory available to FindBugs, I've chosen not to use the ant-task. The problem I have now is that I want to pass a number of jars on the command-line to FindBugs: java -jar .../findbugs.jar foo.jar bar.jar fie.jar However, since these jars actually are Eclipse plugins, I don't know the exact name of the jars so I need a way to use a wildcard to obtain the list. This is what I've come up with: <target name=

Intellij IDEA doesn't recognized XJC task attributes

耗尽温柔 提交于 2019-12-07 18:03:14
问题 I have an ant build.xml file with XJC task definition: <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask"> <classpath> <fileset dir="jaxb" includes="*.jar" /> </classpath> </taskdef> jaxb dir cotnains jaxb-xjc.jar with XJCTask class inside. Then I call xjc task in some target: <target name="mytarget"> <xjc target="src" package="com.p1.Person" header="false"> <schema dir="src/com/p1" includes="Person.xsd"/> </xjc> </target> Intellij IDEA doesn't recognize the structure/schema of the xjc

How to release and install two versions of the same android app using the same package on the same device

时光怂恿深爱的人放手 提交于 2019-12-07 17:50:51
问题 I have an android app with two different res folders (res-1, res-2) containing all layout specific and one shared package. Using ant, I can release and install on my device only one of the two versions of the app at a time. What I want is to release and install them both in the same time, in order to be able to see and test them both on my device. Any suggestions how to achieve this ? Thanks in advance. 回答1: It's impossible to install two apps with the same package name, the existing one will

How do I kill a runaway Java process started by Ant?

北慕城南 提交于 2019-12-07 16:47:29
问题 If I start a forked java process from an ant script and kill the ant process, it does not kill the java process. This is the case whether running it from the IDE or from the command line. <target name="myTarget" > <java classname="path.to.MyClass" fork="yes" failonerror="true" maxmemory="128M"> <classpath refid="run" /> </java> </target> Is there a way to link these, so that killing the ant process will kill the java process? I've seen the following Q&A - but this seems to focus on how to

Should I have multiple build.xml files for one project (dev,staging,production)

十年热恋 提交于 2019-12-07 16:33:09
问题 I'm working to get my head wrapped around ANT, CI, SVN and deploying. I have a dev server, a staging/qa server and a production server and the build server. In theory, the CI Build server (bamboo) will run builds and (FTP??) then to the dev server. At some point, we'll decide to deploy a build to the staging server. How would I update the FTP information that is part of the ANT task? Same question applies when we deploy to the production server. 回答1: I think you are looking for configuration

Is it possible to add a custom manifest to a Java library compiled in Netbeans 6.7.1?

ε祈祈猫儿з 提交于 2019-12-07 16:17:05
问题 I tried adding manifest.file=${src.dir}/manifest.mf to project.properties, but looking through the build-impl.xml I see that the manifest.available is usually accompanied by main.class condition, so it makes me believe that my manifest would be added only if the package has a main class, which mine, being a library, does not have. No matter what I tried, the resulting library jar contains just the auto-generated manifest with only Ant-Version and Created-By. 回答1: I ended up adding a Jar task

using recent Rhino in ant script

懵懂的女人 提交于 2019-12-07 16:10:32
问题 I'm trying to use a recent version of Rhino in an ant tag, but it seems to be using the version of Rhino that comes bundled with the JVM instead. I've tried adjusting the classpath to specify the Rhino script jar. Currently, I've tried the following: <project default="hello" name="hello-world" basedir="."> <target name="hello"> <script language="javascript"> <classpath> <pathelement location="js.jar"/> </classpath><![CDATA[ x=<hello><world/></hello> ]]></script> </target> </project> Notice

Confusion with ANT pattern syntax and possible variations

≯℡__Kan透↙ 提交于 2019-12-07 16:04:08
问题 I am working on an ANT pattern parser as part of a large server project. There are some good examples of ANT patterns in the answer to this post: How do I use Nant/Ant naming patterns? however, I am still confused about some possible permutations. One of the examples on the ANT pattern documentation here http://nant.sourceforge.net/release/0.85/help/types/fileset.html is as follows: **/test/** Matches all files that have a test element in their path, including test as a filename. My

How can I provide a conditional jvmarg for the ant junit command?

﹥>﹥吖頭↗ 提交于 2019-12-07 15:46:21
问题 Our shop has multiple build and test environments (Jenkins, Ant 1.9.6) set up on Java 6, 7 and 8. On Java 7 only, in order for our tests to run successfully, we need to add the JVM argument -XX:-UseSplitVerifier . I can't use a condition inside junit , so I set a boolean property in the init task: <condition property="usesplitverifier"> <equals arg1="${ant.java.version}" arg2="1.7" /> </condition> In my test task, I need to add jvmarg to junit only if that property is true : <echo message=