ant

TestNG ant task fails on Mac OS X with error: No test suite found

二次信任 提交于 2019-12-11 16:47:12
问题 I have a Java project that I've been developing primarily in windows. I have some unit tests that I've written in TestNG that I also run... I'm using TestNG version 5.14.1 My project compiles fine under OS X. The TestNG tests also compile fine.. However when I try to execute the unit tests the task fails with the following error: Omair-Inams-MacBook-Pro:PNServices omairkhawaja$ ant clean testng ... compile-and-jar: [mkdir] Created dir: /Users/omairkhawaja/source/my-project/common/server

How to compare strings in ANT script

烈酒焚心 提交于 2019-12-11 16:46:52
问题 I am writing an ANT script to build my iOS app. I want the user to enter the environment name for which the ipa file should be created. e.g. development or production or QA or UAT. I have the below snippet to accept user input and store it in a property named environment: <input message="Enter targeted environment (dev or QA1 or QA2 or UAT1 or UAT2 or staging or perf or prod)" addproperty="environment" /> After the user enters the environment name, I have to check what the user has entered.

Running p2.process.artifacts in Jenkins

孤人 提交于 2019-12-11 16:27:51
问题 I read the SO post Running P2 Ant tasks outside Eclipse, which was a great help. I am trying to call p2.process.artifacts, however I am not sure what arguments should I pass to java task call. What should value for application argument be and how can I pass augment for jar signing (p2.process.arifacts:sign) to this call which is nested in p2.process.artifacts element? Thanks, Alex 回答1: If you want to run with Java calling Eclipse's AntRunner to run an ant script (eg., build.xml) containing

Harsh Jarring with ivy

别说谁变了你拦得住时间么 提交于 2019-12-11 16:11:43
问题 Does someone happens to know if there is a way to retrieve the contents of jar libs into one single jar - so that it would be jar 1 : org smth new.class jar 2 : org smth also.class jar 3 : org another otheralso.class that single jar: org another one.class smth two class result jar : org another one.class otheralso.class smth two class also.class new.class with ivy and ant ) i have a cachepath or cachefileset ) 回答1: Need to combine ivy with the groovy plug-in. build.xml <target name="resolve">

Build path specifies execution environment J2SE-1.5. There are no JREs installed in the workspace that are strictly compatible with this environment

可紊 提交于 2019-12-11 16:00:31
问题 I use OS X Yosemite (10.10.2) and have some java projects which I want to build in Eclipse. Some projects are old and they are in Java 5, 6 and 7. At first, I installed JDK 7 and Eclipse Luna. Then I read this and this thread how to install specific JDK on mac. I used this script to install JDKs and changed these two lines in order to Yosemite compatibility. /usr/libexec/PlistBuddy -c "Set :JavaVM:JVMMaximumFrameworkVersion 14.*.*" ./Resources/Info.plist /usr/libexec/PlistBuddy -c "Set

Different cod/jad files created using Blackberry jde and Ant

一曲冷凌霜 提交于 2019-12-11 15:35:57
问题 I am using blackberry ant tools to generate cod/jad files and found the generated cod to be different from the one i am trying to generate using blackberry JDE 5.0 . The sizes of the siblings cod files and main cod file are not the same. However I am able to install and run the app using the cod files generated from either JDE or Blackberry ant tools without any problem. I am using the same source code and resource files in both the cases. Can someone suggest me what could be reason for

Loop through directory structure in ant

落爺英雄遲暮 提交于 2019-12-11 15:33:10
问题 We want to loop through directory structure in ant without using foreach . Is there any elegant way to do the same ? 回答1: The apply task can iterate over a set of directories or files <target name="run-apply"> <apply executable="echo"> <dirset dir="src"/> </apply> </target> I personally like the groovy ANT task <target name="run-groovy"> <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy"/> <dirset id="dirs" dir="src"/> <groovy> project.references.dirs.each { ant.echo it } <

Phonegap Android Mac - ANT Issue

馋奶兔 提交于 2019-12-11 14:58:29
问题 I want to install phonegap in my Mac, I've already installed and "platform add ios" succesfuly but have some problems with "platform add android" It says "Error: The command "android" failed. Make sure you have the latest Android SDK installed, and the "android" command (inside the tools/ folder) is added to your path." The SDK is there (and working fine through eclipse) I found in other posts that is a "PATH" issue so I created ".bash_profile" with the correct PATH to "tools" and "platform

JavaC CreateProcess error=206, The filename or extension is too long

风流意气都作罢 提交于 2019-12-11 14:18:03
问题 I tried to compile java code, but I got the error: Caused by: java.io.IOException: Cannot run program "C:\jdk\bin\javac": CreateProcess error=206, The filename or extension is too long. This is the content of my build file: <path id="was.runtime"> <!-- <fileset dir="C:\Users\Administrator\.jenkins\workspace\BUILD2TEST\BUILD2TEST\WebContent\WEB-INF\lib"> <include name="*.jar"/> </fileset> --> <fileset dir="${copy.from.path}/WebContent/WEB-INF/lib"> <include name="*.jar" /> </fileset> <fileset

ExtJS: Override all AJAX calls in production build

允我心安 提交于 2019-12-11 14:06:26
问题 What I'm trying to do is override all AJAX requests, including AJAX proxies, so what I created was an override for Ext.data.Connection. In development mode, this works like a charm, but in a production build, things get a little weird. The reason why things get weird is because we're doing something that "splits" the build (link here). Meaning, we put all of the framework code into its own file, then have "app.js," which is essentially what we use for booting our application, and "viewport.js