good ivy tutorial for local repository? [closed]

Creating a local ivy repository is straight forward, maven is not required. Here’s an example of publishing some text files using ivy as a standalone program. I have 3 files I want to publish: src/English.txt src/Spanish.txt src/Irish.txt The ivy file src/ivy.xml details the name of the module and a list of the artifacts being published. … Read more

How do I pass an argument to an Ant task?

One solution might be as follows. (I have a project that does this.) Have a separate target similar to test with a fileset that restricts the test to one class only. Then pass the name of that class using -D at the ant command line: ant -Dtest.module=MyClassUnderTest single_test In the build.xml (highly reduced): <target name=”single_test” … Read more

Using ant to detect os and set property

Move your condition out of the <target />, as your target probably isn’t invoked. <condition property=”isWindows”> <os family=”windows” /> </condition> <condition property=”isLinux”> <os family=”unix” /> </condition>

Ant if else condition?

The if attribute does not exist for <copy>. It should be applied to the <target>. Below is an example of how you can use the depends attribute of a target and the if and unless attributes to control execution of dependent targets. Only one of the two should execute. <target name=”prepare-copy” description=”copy file based on … Read more

Ant to Maven – multiple build targets

You could do this with profiles… If you really wanted to use two separate profiles and customize the JAR plugin to include and exclude patterns of class and package names, you could easily do this by putting something like this in your POM: <profiles> <profile> <id>everything</id> <build> <plugins> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <classifier>everything</classifier> <includes> <include>**/*</include> </includes> … Read more

Why does ANT tell me that JAVA_HOME is wrong when it is not?

In Eclipse click Run → External Tools → External Tools Configurations. Click the JRE tab. Click the Installed JREs… button. Click the Add button. (Select Standard VM, where applicable.) Click the Directory button. Browse to your JDK version (not JRE) of your installed Java (e.g. C:\Program Files\Java\jdk1.7.0_04). Click Finish and OK. Select the JDK at … Read more

How to set an Ant property only if it is unset

You simply can set the property with the property-task. If the property is already set, the value is unchanged, because properties are immutable. But you can also include ‘not’ in your condition: <condition property=”core.bin” value=”../bin”> <not> <isset property=”core.bin”/> </not> </condition>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)