ant

Jmockit is not merging two coverage.ser files generated using coverage-output=serial

时光怂恿深爱的人放手 提交于 2019-12-08 08:32:57
问题 I have a maven project I am running junit using argument -Dcoverage-output=serial . After each run I make backup of every coverage.ser file in diffeerent folder under same parent folder, then I run ant task to generated coverage report. Like this <java fork="yes" dir="myBaseDir" jar="/root/.m2/repository/org/jmockit/jmockit-coverage/1.17/jmockit-coverage-1.17.jar"> <arg line="-Dcoverage-output=html folder1 folder2"/> </java> JMockit is generating coverage report and index.html but not merging

Java - Using Ant to automatically generate boilerplate code

做~自己de王妃 提交于 2019-12-08 08:30:11
问题 Intro: I'm asking this before I try, fail and get frustrated as I have 0 experience with Apache Ant. A simple 'yes this will work' may suffice, or if it won't please tell me what will. Situation: I'm working on a project that uses JavaFX to create a GUI. JavaFX relies on Java Bean-like objects that require a lot of boilerplate code for it's properties. For example, all functionality I want to have is a String called name with default value "Unnamed" , or in a minimal Java syntax: String name

Ant deploy to tomcat 7

和自甴很熟 提交于 2019-12-08 08:24:18
问题 I have changed my Tomcat Server from version 6 to 7 and now my ant deploy fails. At first i had my ant build like the following and got a 403 error <taskdef resource="org/apache/catalina/ant/catalina.tasks" classpathref="x.classpath" /> <target name="tomcatdeploy" depends="tomcatundeploy,war"> <deploy url="http://localhost/manager/html" username="x" password="x" path="/xx" war="file:x.war"/> </target> I found several sources on the internet an changed the manager/html to manager/text and

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

笑着哭i 提交于 2019-12-08 08:16:50
问题 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? 回答1: 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:/

sql script execution fails when called using ANT SQL task

ぃ、小莉子 提交于 2019-12-08 08:03:35
问题 There is a SQL file which contains some Transact SQL statements in it and some plain table queries as follows: IF NOT EXISTS (SELECT * FROM [dbo].[SYSTEM_PROPERTIES] WHERE SYS_PROP = 'ABC') BEGIN DECLARE @SYS_PROP_ID INT; INSERT INTO SYSTEM_PROPERTIES (...,....,...) values ('...','...','...'); SELECT -------; INSERT INTO ------; END GO IF EXISTS (SELECT * FROM [dbo].[TEMPLATE] WHERE TPL_NAME='....' ) UPDATE [dbo].[TEMPLATE] SET [...] = 'Y' WHERE TPL_NAME='.....' GO When I execute this script

Compiling AIR application with Ant Task (WindowedApplication could not be found)

寵の児 提交于 2019-12-08 07:54:55
问题 I'm trying to compile my AIR application with Ant, using the mxmlc Ant Task. It seems to compile fine, and I get a .swf, but when I try to run it with ADL, I get the message "Class mx.core::WindowedApplication could not be found." It looks like the AIR libraries aren't being included properly. Here's my mxmlc task: <mxmlc file="${MAIN_MXML}" output="${DEPLOY_DIR}/MyApp.swf" compatibility-version="3" locale="en_US" static-rsls="true" debug="${DEBUG_FLAG}" optimize="true" link-report="${DEPLOY

Apache Ivy: Where do I put all these JARs?

纵饮孤独 提交于 2019-12-08 07:31:00
问题 I'm trying to convince the higher-ups at my work place to migrate to Apache Ivy. I've managed to get a few sandbox projects working using Ivy to power the build, and now I have a greenlight to put together a migration proposal. We all agree on one thing: we don't want to trust JARs that are located in public directories! I know, I know, a bit paranoid, yes. But we'd like to have a setup where we pull a JAR from a trusted source (either downloading it from the open source project itself, or

Trying to use Fuse to mount HDFS. Can't compile libhdfs

♀尐吖头ヾ 提交于 2019-12-08 07:10:20
问题 I'm attempting to compile libhdfs (a native shared library that allows external apps to interface with hdfs). It's one of the few steps I have to take to mount Hadoop's hdfs using Fuse. The compilation seems to go well for a while but finishes with "BUILD FAILED" and the following problems summary - commons-logging#commons-logging;1.0.4: configuration not found in commons-logging#commons-logging;1.0.4: 'master'. It was required from org.apache.hadoop#Hadoop;working@btsotbal800 commons-logging

Error Ant Build/deploy to websphere 7.0

烈酒焚心 提交于 2019-12-08 07:09:06
问题 Hi I'm trying to build/deploy war to websphere process server 7.0. and I run on windows environment..... I use http://illegalargumentexception.blogspot.com/2008/08/ant-automated-deployment-to-websphere.html as my reference. and http://illegalargumentexception.googlecode.com/svn/trunk/code/java/WebSphereAntFiles/ as my sample code to deployed. this is my buil.properies is ? #build properties mywebappear=D:/data/code/WebSphereAntFiles/scripts/test/mywebappEAR.ear #WAS6 install directory was

“Received message is too long” when connecting using Ant/JSch to SFTP server

与世无争的帅哥 提交于 2019-12-08 06:52:45
问题 I would like to upload a file from my local unix machine to a remote server that supports SFTP. I tried to implement using Ant script that used SCP task with sftp attribute set to true, but it didn't work, since it would always error out: com.jcraft.jsch.JSchException: 4: Received message is too long: 1416128878. If you can help me achieve that using shell script that should resolve the issue. Also will I have to install sftp or something on my local machine so that the script works? Any help