I have an Android Project which uses droidText Library.
when I run the project using Eclipse Plugin, build well done.
However when I run it using ANT, the build faild and I got this error:
Pre-Dexing /droidText.0.4.jar -> droidText.0.4-39f8a99da14902e4ed96cdcc8f277d6e.jar
[DEBUG] Skipping watched dependency update for build
I'm prety sure that the problem is related to Android dependency and that's du to uses of duplicated classes in JAR file.
But I don't know how to fix that.
can somebody help me please?
The bug was related to the ANT version, before I had ant 1.7 but after I updated the it with ant 1.8.4. things went ok.
Related
is anyone knows how to change the jre libraries on java dynamic web project(I am using Eclipse and Maven)? The case is this, when I first created the project on Eclipse Oxygen package M5 the default jre was 1.6, I changed the Java Build Path(libraries) into 1.7/1.8, however upon updating the project it always returns to 1.6 and there is a red mark on the project folder. I already tried deleting the project and import it as Existing Maven Project and then update and clean but still nothing happens. This happens whenever I am creating a project without XML based configuration. I installed JDK 1.8.0 update 111, 121, and 131 and Apache Tomcat V7(XAMPP). On my brother's laptop everything works fine.
By the way, I also tried to replace .m2 folder of my laptop by copying .m2 folder from my brother's laptop.
Any help is much appreciated.
I assume you are using m2e, the Maven integration for Eclipse, which offers the import as Existing Maven Project option. m2e takes the version for the JRE System Library container from the configuration of the maven-compiler-plugin; this ensures that Eclipse and mvn behave consistently. Try changing the <source> and <target> configuration options of the maven-compiler-plugin, maybe followed by a Maven > Update Project to make sure m2e has sync’ed the changes to the pom.xml with the Eclipse buildpath.
I found a salesforce plugin for intellij IDEA (link), and now trying to install it. The problem is, i've never done this before. So according to instruction:
How to build and install
Until the plugin is released into the IntelliJ plugins repository, you
can following these instructions for manually building and installing
the plugin from GitHub:
Update the ANT script salesforce-plugin-xml with the location of your IntelliJ IDEA install
<!--property name="idea.path" value="C:\Program Files (x86)\JetBrains\IntelliJ IDEA 13.0.2"/-->
<property name="idea.path" value="/Applications/IntelliJ IDEA 13.app"/>
Execute the 'package' target of the ANT script - this will create a salesforce-plugin-#.#.zip file in the out directory
Go into IntelliJ IDEA settings under Plugins and select "Install plugin from disk". Select the zip file and click Ok.
I downloaded a project from github, added path to idea to salesforce-plugin.xml. Then i realized that i don't have an ant to build it. I installed homebrew, installed ant, checked the version (ant appeared, ok).
Then i stuck. I tried different combinations, how to package the plugin, The last attempt is when i changed salesforce-plugin.xml to build.xml and wrote in terminal:
ant package build.xml
got:
Buildfile: /Users/cooler/Downloads/salesforce-plugin-master/build.xml
BUILD FAILED
/Users/cooler/Downloads/salesforce-plugin-master/build.xml:36: taskdef
class com.intellij.ant.Javac2 cannot be found using the classloader
AntClassLoader[]
Can you help me please to do this in right way!?
BTW, i use Mavericks
On a Mac, you need to add /Contents to the root path of the IDEA installation. For example:
<property name="idea.path" value="/Applications/IntelliJ IDEA 14.app/Contents"/>
When generating ant build scripts:
build -> generate ant build
-> check "use current idea instance for idea.home property"
Re-generate the ant build scripts. Now the build should work propertly.
As title, is there any difference on the JAR that is created from Eclipse Export function vs ANT build if i were to run it with uiautomator?
Referring to Android UI Testing, I try to build JAR using ANT but i encounter some problem and couldnt fix it. So, i try to use Eclipse Export function to create the JAR and run it with Uiautomator. But then, i'm getting another problem. I've been googling around and cracking my head to get over this error so that i can test my stuff. Can anyone shed some light?
I manage to solve my problem by adding a AndroidManifest.xml to the project and i can then build JAR using ANT. The JAR runs perfectly with uiautomator
I am new to Plugin development and hence facing this issue.
I have 2 plugin projects and both the projects are part of a feature project. I want to set up an ANT build which could build the feature project and publish it to an URL or File system.
Here is the scenario:
Plugin Project A isDependentOn -> Plugin Project B.
For both these project, I wrote build files which builds them properly.
Now I created a Feature project and included both these plugins into it. However I am not able to correctly write the ANT build file or may be I am not sure of the complete process.
Any help would be greatly appreciated.
Thanks in advance. Cheers !!!
Its better use Maven with Tycho to build eclipse features and plugins in headless mode.
Refer the link Eclipse Tycho and Using Tycho
I've just updated my Worklight Studio from 6.0.0.1 to 6.1.0 and with the update I've gone ahead and updated the worklight-build-tools.jar on my path. It's worth mentioning that my team has already updated the project we're working on to 6.1.0.
Following the update, I ran the ANT tasks to build and deploy all project artifacts.
The result, I wasn't able to deploy the adapters to the local development server.
I unzipped the worklight-build-tools.jar and poked around for a while and found the adapter-deployer task has been moved to a different location within the jar. I added the new taskdef to my build.xml and got the error below.
Can someone shed some light on this? The class doesn't seem to exist in the jar at all.
Here is the error from the ant:
Buildfile: /Users/mario/Documents/workspace/workspace-myproject/MyWorklightProject/build.xml
BUILD FAILED
/Users/mario/Documents/workspace/workspace-myproject/MyWorklightProject/build.xml:35: taskdef class com.ibm.worklight.config.ant.appserver.UpdateAppServerTask cannot be found
using the classloader AntClassLoader[/Users/mario/Documents/workspace/workspace-myproject/MyWorklightProject/worklight-build-tools.jar]
You can find worklight-ant-builder.jar and worklight-ant-deployer.jar after installing Worklight Server 6.1, and looking in the WL_INSTALL_DIR/WorklightServer/ folder.
worklight-ant-builder.jar is for these tasks:
http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.deploy.doc%2Fdevref%2Fr_ant_tasks_deploy_projects.html
http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.deploy.doc%2Fdevref%2Fr_ant_tasks_buld_deploy_apps.html
worklight-ant-deployer.jar is for these tasks:
http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.deploy.doc%2Fdevref%2Fr_ant_tasks_buld_deploy_adapters.html
http://pic.dhe.ibm.com/infocenter/wrklight/v6r1m0/index.jsp?topic=%2Fcom.ibm.worklight.deploy.doc%2Fdevref%2Fr_ant_tasks_for_deploying_and_configuring.html