ant

how to use ant in eclipse for preprocessing

倖福魔咒の 提交于 2019-12-14 04:06:26
问题 I need to know how to use an an Ant tool for preprocessing in Blackberry. I have a project which needs to be used in 4.6 and 5.0 versions of Blackberry, since JDE4.6 doesn't support preprocessor. I need to know how we can use Ant tool in Eclipse? Any sites or example will do. I referred this site. 回答1: http://www.blackberryforums.com/developer-forum/138210-setup-up-eclipse-blackberry-development.html and http://bb-ant-tools.sourceforge.net/docs This both links will be very helpful to you as a

junit: how to avoid false positives when using forkMode=“once”?

旧时模样 提交于 2019-12-14 03:55:36
问题 I'd like to speed up junit tests and I think about using forkMode="once" . Due to the fact that junit seems to use a shared classloader for all tests within one process beside false negatives (which is good thing because it exposes static coupling) there might be also false positives by the same reason. I've got two questions regarding this: Is it somehow possible to alter the classloader behavior in junit to enforce a new classloader for each test case ? I think it would be ideal to be able

Are There Any Best Practices for Writing Custom NAnt, Ant, or MSBuild tasks?

喜欢而已 提交于 2019-12-14 03:49:10
问题 I'm in the process of writing a custom task for NAnt. I've been basing how I write the code based on some examples I've found on the Internet and by looking at the source of some other tasks for both NAnt and Ant. With that being said, are there any guidelines or best practices for writing good tasks for build managers like NAnt, Ant, or MSBuild? I'm looking for such in terms of exception handling and modularity (i.e. if my task does something with the file structure should I delete and

DELIMITER error in MySql

两盒软妹~` 提交于 2019-12-14 03:46:44
问题 I am using the following sql: DELIMITER $$ DROP PROCEDURE IF EXISTS `get_auto_increment_settings`$$ CREATE PROCEDURE `get_auto_increment_settings`() BEGIN select @@global.auto_increment_offset as 'offset', @@global.auto_increment_increment as 'increment' ; END $$ DELIMITER ; I stored this in db_auto_increment_settings_procedure.sql and when I am trying to execute this from ant, I am facing the following error: [sql] Executing resource: /mysql/install/db_auto_increment_settings_procedure.sql

how to convert pom.xml to build.xml

可紊 提交于 2019-12-14 03:29:57
问题 Am a new bee in this area. Got a part in pom.xml like below which i need to change in ant buid.xml. How do i do it? Can i get any help from tutorial or anyone can explain what <dependency> <groupId>com.ask.core</groupId> <artifactId>wzlogging</artifactId> <version>1.5</version> <exclusions> <exclusion> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> </exclusion> <exclusion> <groupId>org.glassfish.extras</groupId> <artifactId>glassfish-embedded-all</artifactId> </exclusion> <

How to modify build.xml to run multiple files in that order

一曲冷凌霜 提交于 2019-12-14 03:16:54
问题 I have implemented an echo server Client : connects to server, sends string data to server. Server : prints incoming data, sends back data to client I need to run both server and client using ant in cmd. How do I make the same build.xml file run both server and client. Can I set both targets in the same file or do I need to use different build.xml files. Please find below, build.xml file that I am using, which runs the echo server. I need to run the EchoClient.java as well. How do I modify

How can I run Selenium 2 Grid from an Ant build?

*爱你&永不变心* 提交于 2019-12-14 03:05:25
问题 I'm working on modifying our existing Selenium Grid setup so that it will work with Selenium 2. The process of setting up the hub and nodes seems to be much simpler, but I'm having a problem getting it running in an Ant build the way I did before. I've read through the wiki on Selenium 2 Grid and tried to set up the Ant build accordingly. My problem is that the first target runs, starting the hub. Then, the other targets do not run, but the build completes. I'm attempting to run these on my

Replacing an entire XML tag using ANT

余生颓废 提交于 2019-12-14 02:12:53
问题 PhoneGap Build provides a service (currently free during beta) where they take your HTML+JS+CSS source, along with an XML file to configure build options (config.xml), and do server-side builds for all supported platforms (iOS, Android, Blackberry, Symbian, WebOS), which is a huge time saver and saves me tons of money on headache medicine. Unfortunately, there is inconsistent behavior with the way links to external websites work: Currently in order to have links open in an external browser,

SONAR - How to exclude packages that is defined under “sonar.test”

断了今生、忘了曾经 提交于 2019-12-14 01:00:57
问题 I have a projects in JAVA that I analyze using sonar. Some of the java packages that I have are all under source folder. I also have some test file that I have under a different folders. Now, in Sonar, I organize my projects under a different structure, i.e. for a project "search", I only wants to include "search" package. These exclusion is quite easy to accomplished using sonar.exclusion properties. My question, though, is how about the test? how can I exclude some of the packages? Because

Eclipse 3.7, Ant, Java 1.7

耗尽温柔 提交于 2019-12-14 00:17:50
问题 I went through and uninstalled all Java from my computer. Then I installed JavaSE JDK1.7. I then modified Eclipse configuration so it would start and opened it up. I have an Ant script to build my project and I want to build my project against 1.7, but whenever I run the script, it says 'Launching PROJECT build.xml' has encountered a problem. Specified VM install not found: type Standard VM, name jdk1.6.0_21 The installed JRE in Eclipse is 1.7 and nothing else. I cannot for the life of me