ant

Hudson+svn+ant+tomcat一键自动化部署

蓝咒 提交于 2020-12-30 11:36:38
准备工作 安装 jdk 下载 http://hudson-ci.org/ 下载 svn 下载 ant http://ant.apache.org/ 下载 tomcat Hudson 启动及插件初始化 启动 Hudson 的 war 包扔到 tomcat 里,启动 tomcat 访问 http://localhost:8080/hudson/ 出现如下界面,成功 初始化 svn 插件 初始化 Hudson SSH plugin ant 配置 Windows ANT_HOME=D:\apache-ant-1.9.4 Path 中加入如下内容 ;%ANT_HOME%\bin;%ANT_HOME%\lib; 配置成功: Ant 过程中 Java heap space 解决办法如下: ant.bat 文件中配置 jvm 内存 set ANT_OPTS=-Xms128m -Xmx256m -verbosegc set ANT_OPTS=-Xms256m -Xmx512m -verbosegc -verbosegc 可以查看 Java 使用的堆内存的情况 Linux 解压缩 apache-ant-1.9.4-bin.tar.gz tar zxvf apache-ant-1.9.4-bin.tar.gz 在 /etc/profile 配置环境变量 ANT_HOME=D:\apache-ant-1

Maven2:List return type methods not getting generated from .xsd files while using xmlbeans plugin

こ雲淡風輕ζ 提交于 2020-12-13 11:34:39
问题 I am tring to build my project using maven2.This project was succesfully build using ANT in netbeans IDE. Now the problem is, I am able to generate the .java files from .xsd files using xmlbeans maven plugin.But some getter setter methods having java.util.list as return type is not getting generated. Please help me..I am not able to do my build beacuse of this :( 回答1: You need to set the javasource version to 1.5 to get List support in XmlBeans. 来源: https://stackoverflow.com/questions/7631439

Running unit tests with mpirun using ant

陌路散爱 提交于 2020-06-26 13:57:32
问题 I'm trying to run my unit tests through mpirun using ant. I have specified the task as: <target name="unitTest" depends="buildUnitTest"> <mkdir dir="reports"/> <junit fork="yes" jvm="mpirun java" printsummary="yes" haltonfailure="yes"> <classpath> <pathelement location="./bin"/> <pathelement location="/usr/share/java/junit4.jar"/> </classpath> <jvmarg value="-DDIM=3"/> <jvmarg value="-ea"/> <formatter type="plain"/> <batchtest todir="reports"> <fileset dir="test"> <include name="haparanda

Running unit tests with mpirun using ant

大城市里の小女人 提交于 2020-06-26 13:57:28
问题 I'm trying to run my unit tests through mpirun using ant. I have specified the task as: <target name="unitTest" depends="buildUnitTest"> <mkdir dir="reports"/> <junit fork="yes" jvm="mpirun java" printsummary="yes" haltonfailure="yes"> <classpath> <pathelement location="./bin"/> <pathelement location="/usr/share/java/junit4.jar"/> </classpath> <jvmarg value="-DDIM=3"/> <jvmarg value="-ea"/> <formatter type="plain"/> <batchtest todir="reports"> <fileset dir="test"> <include name="haparanda

Running ant in eclipse (sql2java) - no output to the console

不问归期 提交于 2020-06-26 04:00:21
问题 I am configuring sql2java the first time myself. I extracted the zip-archive and imported all files into an eclipse java project. I don't know if this is correct, because when I run the ant build file through the eclipse ant function ("Run as ant build...") there is no output on the console. I don't know where the problem is located, sql2java, ant, eclipse? Its a fresh and clean install of eclipse galileo. How can I get sql2java / ant to work? How do I get any information that can help me to

JAVA_HOME does not point to the JDK

社会主义新天地 提交于 2020-06-09 11:44:29
问题 I am trying to follow a tutorial about how to use ant to build and run your application. I've followed all the steps and have created the build file, but when I try to run ant it gives me this error. BUILD FAILED /home/bilal/tmp/ant/build.xml:19: 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 "/usr/lib/jvm/java-6-openjdk/jre" Any ideas how to resolve this issue ? 回答1: Make JAVA_HOME

Display Sonar Code Coverage with jacoco.exec file in Sonar LTS 7.9.2

感情迁移 提交于 2020-05-15 19:11:48
问题 Recently I have updated SonarQube 7.9.2 in which sonar.jacoco.reportPaths property has been deprecated and need to use sonar.coverage.jacoco.xmlReportPaths . I don't have JaCoCo xml report generated and I am using ant for build and JUnit. Please help me to view the coverage on SonarQube with exec file. 来源: https://stackoverflow.com/questions/59527088/display-sonar-code-coverage-with-jacoco-exec-file-in-sonar-lts-7-9-2

I am getting '**** WRONG JAVA VERSION ****' on running ant build

耗尽温柔 提交于 2020-05-15 03:47:46
问题 My question is not this question, because I have no discrepancy in java versions. The build on running 'ant clean all' is failing after I installed java 1.8.45 (both jdk and jre). It says: **** WRONG JAVA VERSION **** Environment check failed: You are using a not supported version of Java. Please make sure you are using Java version 1.7 or later. Your current Java version is: 1.8.0_45 TIP: If you are using eclipse you can configure a different JVM under Preferences->Java->Installed JREs.