ant

No ruleset or basic.xml in the sourceforge pmd-bin-5.0.0 download

六月ゝ 毕业季﹏ 提交于 2019-12-12 02:16:20
问题 I've been reading all over the PMD Website and it has all these references to <rule ref="rulesets/basic.xml/UnnecessaryConversionTemporary"/> but I cant find the file basic.xml in either the pmd-bin-5.0.0 or pmd-bin-5.0-alpha directory downloaded from sourceforge. As you can see in the screen dump I've provided below, I've done a search for this basic.xml and came up empty handed. (source: iforce.co.nz) In the next screen shot of pmd-bin-5.0.0 there is no folder called ruleset (source: iforce

Error using Ant to create EJB after upgrading WAS from 6.0 to 7.0

烈酒焚心 提交于 2019-12-12 02:15:24
问题 Ant task breaks at the <wsejbdeploy> tag. The exception message is : [wsejbdeploy] Error executing deployment: java.lang.ClassNotFoundException. Error is com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension. [wsejbdeploy] java.lang.ClassNotFoundException: com.ibm.etools.ejbdeploy.batch.plugin.BatchExtension [wsejbdeploy] at java.lang.Class.forName(Class.java:136) In addition to that, ivy.xml reports problems, but when I inspect it, the messages have no sense (screenshot). I suspect the

ant build - unzip doesnt support the nested “cutdirsmapper” element

拈花ヽ惹草 提交于 2019-12-12 02:13:58
问题 I'm totally new to this and really need your help. i tried to build git distribution using "ant" and got an error path~/build.xml: unzip doesn't support the nested "cutdirsmapper" element i have no idea how to fix this. my system "Centos" 64bit 回答1: The <cutsdirmapper> element was added in Ant 1.8.2 according to the documentation, but you are presumably using an older version of Ant (try the ant -version command to see). You can download/use a newer version of Ant, which is probably your

How do i know that jetty started successfully with application instance from an ant target?

回眸只為那壹抹淺笑 提交于 2019-12-12 02:08:55
问题 I face the following problem: whenever i try to start Jetty with an application instance i need check if the application is running. I need to do that from an ant target. I want to have something behaving like the following pseudocode: ** <target name="target1" depends="run-jetty-with-application" description="Target1"> <--when run-jetty-with-application is ok(jetty is up and application is running)--> <antcall target="target2"/> <--end when--> </target> ** I should also mention that i have

Can I use less4j to compile less into css in ANT?

柔情痞子 提交于 2019-12-12 02:05:27
问题 I am wondering if some one could give me a demo. When I use less4j, in tag, what should I put in ? I searched online for a long time, but it seems that there are no information about using less4j in ANT at all. But since less4j could be implemented in command line, so it must be implementable in ANT. Please help me with this, thanks! 回答1: <?xml version="1.0" encoding="UTF-8"?> <project name="compile" default="css.concatenate" basedir="."> <property name="charset" value="utf-8"/> <macrodef

Encrypt Ant build file

别来无恙 提交于 2019-12-12 01:50:07
问题 We need to enable some partners to work with us on some java projects, and we need to provide them with the ant build scripts. However, if possible, we want to encrypt the ant build files (build.xml etc.) so that partners can do the build, but they cannot see the actual ant file content (I know it's weird). Any good suggestions are appreciated. (we are on the Windows box) 回答1: Ant itself does not allow you to encrypt the build scripts (nor does any other build system AFAIK). What you can do

Preprocessor in Blackberry (through bb-ant-tools)

人走茶凉 提交于 2019-12-12 01:47:46
问题 There is a project that has #preprocess directives. I.e. there is #preprocess directive in the beginning of a file and something like #ifdef BlackBerrySDK6.0.0 inside the file. Though it compiles well in eclipse, there are problems using bb-ant-tools. It behaves as though there is no preprocessing: compile errors on strings that should not be included. I have build.properties file; it is included through <property file="build.properties"> AND <jdp file="build.properties"> . I have

Ant couldn't connect to mysql (access denied), but mysql client could

人走茶凉 提交于 2019-12-12 01:40:16
问题 I hava the next task in my ant file: <target name="initdb"> <sql driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/dtest" userid="root" password="oksaoksaoksa" > <classpath> <pathelement path="./lib/mysql-connector-java-5.1.13-bin.jar"/> </classpath> <transaction src="./init.sql"/> </sql> </target> When I run it, I see the error: BUILD FAILED /home/sbos/projects/texterra-tests/deploy.xml:43: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

ANT: Jdbc driver error

荒凉一梦 提交于 2019-12-12 01:35:03
问题 Trying the below code: <sql classpath="postgresql-8.4-701.jdbc3.jar" driver="org.database.jdbcDriver" url="devtest" userid="uid" password="pass"> select * from tab where tname = 'GR_DOCUMENT_PRINT_DFV'; </sql> Getting the below error: BUILD FAILED C:\Program Files\Java\apache-ant-1.8.1\build.xml:62: Class Not Found: JDBC driver org.database.jdbcDriver could not be loaded Total time: 1 second Please help. Now I have updated the code. Add classpath to the previous code. Also add mysql-connector

svnant command to copy files from an ssh repository to a sever?

ε祈祈猫儿з 提交于 2019-12-12 01:33:57
问题 Hi is there anybody who knows how to write the copy command for svn-ant or just svn to copy files from an ssh repository (svn+ssh://username@10.10.10.10/media/repository/files) to a server folder (var/httdocs/files) 回答1: I think you want the svn export command. The command line would look like this: svn export svn+ssh://username@10.10.10.10/media/repository/files /var/httdocs/files The svnant equivalent would look like this: <svn> <export srcUrl="svn+ssh://username@10.10.10.10/media