ant

java build ant file with external jar files

人盡茶涼 提交于 2019-12-12 14:27:49
问题 I created an ant build file to compile my java src into a .jar file. It uses external jar files. My files dir: +src ----android ------------Address.java ------------HelloServer.java ------------HelloServerResource.java +lib ------------org.codehaus.jackson.core.jar ------------org.codehaus.jackson.mapper.jar ------------org.json.jar ------------org.restlet.ext.jackson.jar ------------org.restlet.jar build.xml The external libraries are in lib folder. The main class is in HelloServer.java Here

Hudson/Jenkins PMD Configuration

末鹿安然 提交于 2019-12-12 14:11:27
问题 I am new to Jenkins and just started configuring it. This is what i have done till now: Installed and configured Jenkins to display the home page. Added PMD plugin. Set the HUDSON_HOME to a specific directory > C:\Work\Jenkins Configured a test build to run a simple do-nothing ant script. It runs successfully Written an independent pmdbuild.xml to run checks on a set of files in C:\myview (I am using clearcase). This xml also copies the output pmd_results.xml to the workspace directory in

Integrating JMeter as part of Maven project

瘦欲@ 提交于 2019-12-12 13:37:24
问题 I'm starting my work on the project related to creating some custom set of jmeter components that would be bundled in my custom jmeter distribution. Those custom components are part of the Maven project and what I would like to do is try to integrate this maven project with latest jmeter project to be able to build and deliver jmeter build that contains my custom set of components with all related dependency jars. Problem is that jmeter project is ant project. I've came across this: http:/

How can I output from java code to the Jenkins console?

假如想象 提交于 2019-12-12 12:45:35
问题 I have java code with many System.out.println() added. One of them is at the start of the "main" method. When I start the code in NetBeans, I see the console output with all these println . When I start the class in Jenkins/ant with fork&spawn set to true (as a separate task), it runs, but no println is put to the Jenkins console. Can I make System.out.println to write to Jenkins console? I have found an interesting repaired Jenkins issue, they say "a variable 'out' of the object model can be

Expand a relative path in Ant script, for Inkscape

此生再无相见时 提交于 2019-12-12 12:33:11
问题 I'd like to write an Ant script that calls an external utility (Inkscape, in fact) that needs a full path. Right now I have <exec executable="${inkscape.path}"> <arg value="--file=build_exe/splash.svg" /> <arg value="--export-png=build_exe/splash.png" /> <arg value="-C" /> </exec> On Windows, Inkscape requires absolute paths. So how can I coax Ant to make build_exe/filename into an absolute path for me? Or, alternately, is there a workaround for Inkscape (maybe setting the working directory)?

Ant Build not able to recognize JAVA_HOME

蓝咒 提交于 2019-12-12 12:29:20
问题 I am getting following error while doing build using ANT: rem bug ID 32069: resetting an undefined env variable changes the errorlevel. if not "C:\Program Files (x86)\Java\jdk1.6.0_30\bin\java.exe" == "" set _JAVACMD= if not "" == "" set ANT_CMD_LINE_ARGS= I understand that ANT is not able to point to JDK. I am starting ANT build via .bat file and there I am specifying following set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_30 set ANT_HOME=C:\Softwares\apache-ant-1.8.4 If add double

How to build jar for Android library project in Intellij Idea without unnecessary content

◇◆丶佛笑我妖孽 提交于 2019-12-12 12:28:35
问题 When I build jar for Android library project in Intellij Idea it puts inside all dependent jar that I use in the project and classes.jar but as I think all that stuff is unnecessary and jar can contain only compiled classes e.g. Is that possible to compile clean jar in Idea? or should I use ant or something else? 回答1: You cloud compile the project using intelliJ, then locate the class files, the go to their root folder, then its parent folder and use jar cvf foo.jar -R <root>/ in a shell. 来源:

Undesired character encoding translation in transform output

依然范特西╮ 提交于 2019-12-12 12:13:48
问题 I have a situation here. -JAVA version 1.6. -Linux RH 5.6 Tikanga. -Windows 7 (Cygwin latest version) -Gradle 1.6 On one machine (Linux) = when I run Gradle build, I get resultant .xsl files which are similar to what I was getting when I was running ANT build On another Linux machine = I see differences in the .xsl files. What all System level files in Linux and even in Windows and any environment variables can affect this kind of behavior? In every case, I get a successful build but

What happen if someone run Ant symlink task on Windows (NTFS)?

五迷三道 提交于 2019-12-12 11:26:54
问题 I write ant build script. I need to create a symlink and I found symlink task. According to manual, it works only on Unix. What happens if someone run my build script on windows platform? Will build fail? Or this task will be ignored on windows platform? Or in case of NTFS drive, it will even work? 回答1: I'm running Win7 and I tried it. Since I have Mingw installed it used ln. Ln seemed just to copy everything. Since a normal Windows installation does not have ln, it would fail there. Here's

How to filter ressources during build in Eclipse project?

时光总嘲笑我的痴心妄想 提交于 2019-12-12 10:54:15
问题 I have an application that uses several configuration files (let just consider appli.properties here). These files contain several values that depend on the environment. We can find some information such as: server.port=${envi.server.port} On other side, I have a set of properties files, one per environment (dev.properties, homolo.properties, etc.). They contain the values for some properties in configuration files. We can find here this kind of properties: envi.server.port=4242 My build is