ant

Exclude individual JUnit Test methods without modifying the Test class?

∥☆過路亽.° 提交于 2019-12-09 03:07:51
问题 I'm currently re-using JUnit 4 tests from another project against my code. I obtain them directly from the other project's repository as part of my automated Ant build. This is great, as it ensures I keep my code green against the very latest version of the tests. However, there is a subset of tests that I never expect to pass on my code. But if I start adding @Ignore annotations to those tests, I will have to maintain my own separate copy of the test implementation, which I really don't want

微服务框架一键打包,实现开发、部署环境分离

百般思念 提交于 2019-12-08 23:56:15
场景说明 本项目中微服务项目共30+个工程包,开发环境开发人员只需启动一个web工程、service工程,而部署时如上图所示需要增加eureka、zuul等配置,如果将每个包进行单独修改配置文件,修改过多容易出错,这时最好能够进行一次修改,之后能够一键打包。 打包环境 工程是基于maven创建的,所以打包环境首选需要maven。文件替换我这里有ant所以直接使用ant做svn下载、文件替换(也可以直接使用bat命令) 查看maven版本:mvn -version 查看ant版本:ant -version 编写脚本 1、准备需要替换的文件 创建replaceFile文件夹,文件夹中按照工程名进行创建文件夹并放入需要替换的文件 application.yml:进行修改的有服务名context-path、端口、数据库链接、eureka相关配置、其他微服务链接、redis相关配置等 pom.xml:解决打包特殊文件名 <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> <resources> <resource> <directory>src/main/java

Building Android project with Ant — cannot find symbol

折月煮酒 提交于 2019-12-08 20:50:45
问题 I am attempting to build my android project using ant (it runs fine in eclipse). I run an error with the following build failed line: BUILD FAILED .../android_sdks/tools/ant/build.xml:680: The following error occurred while executing this line: .../android_sdks/tools/ant/build.xml:693: Compile failed; see the compiler error output for details. The above java compilation has plenty of errors, all of which are cannot find symbol errors. Most of these symbols are variables added to the R file.

How can I get the revision number into an Ant property in Luntbuild?

心不动则不痛 提交于 2019-12-08 20:44:35
I'm sure this must be possible: I want to have the revision number (from Subversion) put into a property that is accessible from Ant when my build runs in Luntbuild. There must be an OGNL expression that I can add to the Build Properties box on the configuration page for my Ant builder. Does anyone know what it is? You might find using either the SvnAnt or svntask Ant tasks to get the Subversion revision number directly in your Ant script might be a valid alternative. 来源: https://stackoverflow.com/questions/1065130/how-can-i-get-the-revision-number-into-an-ant-property-in-luntbuild

Ant with Hudson

ぐ巨炮叔叔 提交于 2019-12-08 20:18:36
问题 I have problem in running the Job in Hudson. I have configured the Hudson with the ANT_HOME with the path of the ant and JDK as well with the relative path. And I created a New Job, where I setup the SVN path and rest of the things. My build.xml of the project is in Project root Folder/build/build.xml And them I have added the build.xml in the Linux. Which is like this. <project name="Test Job" default="build"> <target name="clean"> <delete dir="${basedir}/svn/_build"/> <delete dir="${basedir

cordova add platform - Error executing command 'ant'

為{幸葍}努か 提交于 2019-12-08 20:16:19
问题 In the beginning.. I know that this question has been asked way too many times and.. I checked all ansers on SO. Tried every combination and every solution I found but nothing has worked for me so far. The problem I've succesfully installed cordova downloading it from the official site and I've been following the Guide. I've added wp8 platform succesfully first. Then I tried to add android as well. After executing the command cordova platform add android , I got the following error. Error:

Junit test integrated with Ant Failed with ClassNotFoundException

有些话、适合烂在心里 提交于 2019-12-08 19:45:47
问题 I have JUnit tests on my project that run correctly with Eclipse. So, now I try to integrate these tests with an ant task. To make that I make the following ant script : <path id="classpath-test"> <pathelement path="." /> <pathelement path="${classes.home}" /> <fileset dir="${lib.home}" includes="*.jar" /> <fileset dir="${libtest.home}" includes="*.jar" /> </path> <target name="compile" ... > // compiles src code of the project <target name="compile-tests" depends="compile"> <javac srcdir="$

How can I apply a timeout to an Ant task?

陌路散爱 提交于 2019-12-08 19:21:19
问题 Without writing a custom Ant task, is there a way to use a timeout on a regular ant target? To give some background info: we are using the 'delete' task to remove the contents of a given directory. Sometimes this directory is massive, with lots of generated folders and files. We wanted to have that task timeout after, say, 5 minutes. 回答1: You might use the parallel task, which has a timeout, with a parallel degree of one: <target name="timed_del"> <parallel threadCount="1" timeout="300000">

Ant can't find Javac. No matter what I do it always claims JAVA_HOME is “C:\Program Files\Java\jre6”

青春壹個敷衍的年華 提交于 2019-12-08 19:05:37
问题 ...and that's wrong. Here's the error I get: BUILD FAILED C:_TraderPlatform\Clients\Open\Open\Java\Applets\PPDataTransporter\nbproject\build-impl.xml:338: The following error occurred while executing this line: C:_TraderPlatform\Clients\Open\Open\Java\Applets\PPDataTransporter\nbproject\build-impl.xml:158: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "C:\Program Files\Java\jre6" I've set

Increasing permgen space for Cobertura ant task running from Gradle

对着背影说爱祢 提交于 2019-12-08 19:03:29
I'm getting the following trying to run Cobertura as part of my Gradle build. :cobertura Instrumenting classes for Cobertura Exception in thread "Test worker" java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: PermGen space I've tried bumping up DEFAULT_JVM_OPTS / -XX:MaxPermSize in my gradle wrapper script, to no effect. Is there a more direct (and effective) way to do this? The only thing that worked for me was changing the .bashrc on my Linux box to have export _JAVA_OPTIONS='-XX:MaxPermSize=512m' Proof that this got detected by gradle when I built was shown with this