ant

mapping multiple ivy files in Eclipse

£可爱£侵袭症+ 提交于 2019-12-11 11:36:05
问题 I'm currently changing my eclipse build paths with Ivy. I also modified my ANT build successfully by having 2 Ivy files loaded that retrieve my dependencies: In my portlet build file, I specifically call the common dependencies for all of the portlets which prevents me from specifying the same librairies in every Portlet project: <if> <available file="${rpm.homedir}/Builder/ivy_portlet.xml" /> <then> <echo message="Getting runtime portlet dependencies using Ivy project's configuration" />

maven plugin, ant task, or gradle plugin which checks that rpm has been installed

老子叫甜甜 提交于 2019-12-11 11:35:05
问题 Is anyone aware of a maven plugin, ant task, or gradle plugin which can verify that an rpm has already been installed on a Linux system? All the plugins coming up in google results seem to be focused on creating RPMs rather than checking for RPM dependencies e.g. c-builds plugin http://mojo.codehaus.org/cbuild-parent/ rpm-maven-plugin http://mojo.codehaus.org/rpm-maven-plugin/index.html Context: we have some maven-native-plugin artifacts which depend on the /usr/include/openssl/ssl.h and /usr

Hibernate Tools failing to get index info from Postgres tables

一笑奈何 提交于 2019-12-11 11:24:45
问题 I'm using Hibernate Tools with Ant to generate POJOs from a Postgres database. My database has two simple tables: Person and Vehicle. Each table has two columns: an id and a name When the Person POJO is being generated, Hibernate throws an exception when attempting to obtain index info: [hibernatetool] getIndexInfo(null.public.person) [hibernatetool] Exception while trying to get indexinfo on public.person=Exception while getting index info for public.person Despite this exception the Person

Getting compile error: package com.twilio.sdk does not exist

家住魔仙堡 提交于 2019-12-11 11:22:11
问题 New-bee in java here. I'm on an ubuntu 12.04 machine. I am trying the Twilio API using java to make voice calls from an uiautomator test case and following the instructions provided at https://www.twilio.com/docs/java/install. I downloaded both twilio-java-sdk-3.4.2-with-dependencies.jar and twilio-java-sdk-3.4.2.jar from http://search.maven.org/#browse|1260284827 (pre-built). I am using Twilio API in an uiautomator java project. I am able to build and run that uiautomator java project

No output from Checkstyle in ANT

天涯浪子 提交于 2019-12-11 11:18:18
问题 I am not using an automated build tool. Just Checkstyle 5.5 and ANT 1.8. I am trying to have Checkstyle run in my ANT script. The ANT script executes without error, but doesn't seem to call Checkstyle. I get no output except ANT reports BUILD SUCCESSFUL. Here is my ant script: <project name="ccu" xmlns:cs="antlib:com.puppycrawl.tools.checkstyle"> <target name="checkstyle" description="Generates a report of code convention violations."> <cs:checkstyle config="custom_check.xml"> <fileset dir=

errors when using Guava to get the private domain name

♀尐吖头ヾ 提交于 2019-12-11 11:05:20
问题 I am using guava-18.0 and java1.6 Given codes below: String host = null; host = new URI(this.domain).getHost(); Pattern p = Pattern.compile("[a-zA-Z]"); Matcher m = p.matcher(host); if(m.find()){ InternetDomainName domainName = InternetDomainName.from(host); this.domain = domainName.topPrivateDomain().name(); System.out.println(this.domain); } else this.domain = host; When running ant to build, it gives such error message: [javac] symbol : method name() [javac] location: class com.google

Ant pattern matching to select file is not working

99封情书 提交于 2019-12-11 11:00:01
问题 <fileset dir="${server.src}" casesensitive="yes"> <patternset id="non.test.sources"> <include name="**/test-[0-9-]+.zip"/> </patternset> </fileset> I am using pattern matching to select only particular file in ant build.xml But its not selecting any file. I have a file with name test-123453.zip 回答1: A fileset 's include element expects glob patterns, not regex patterns. Nesting it in a patternset doesn't change this functionality. You can use the filename selector with the regex attribute to

ANT: split string into multiple parameters

好久不见. 提交于 2019-12-11 10:53:30
问题 I have just finished an ANT script (does the job perfectly). But there is a new requirement and script has to change. The goal is to have ANT deployment file called deploy-all.txt . The file will look like client1=name1=server1+server2=repositoryX client2=name2=server1+server3=repositoryY client3=name3=server2+server4=repositoryZ There will be only 1 client, only one name, from 1 to few servers, only one repository, and one type. What the goal is: for each line i need to get variables so i

Ant: Split Source Directory into Two Jars

不羁的心 提交于 2019-12-11 10:52:05
问题 How does one go about creating two Jars from one project source folder? Is that possible, or must I create another project? My project uses Ant right now to generate one Jar. For example, say I want to split up the class files like this: Jar 1: com.myproject.Foo com.myproject.Bar Jar 2: com.myproject.FooBar com.myproject.BarFoo com.myproject.FooBarFoo ... 回答1: See http://ant.apache.org/manual/Tasks/jar.html. You just have to use filesets or includes/excludes inside your jar task to include

Sonar Ant task execution error

放肆的年华 提交于 2019-12-11 10:49:54
问题 I wrote the ant sonar task but when i am executing in the console i am getting following error E:\Liferay\Liferay 6.2\workspace\plugins\build.xml:305: org.sonar.batch.bootstrapper.BootstrapException: java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:9000/sonar/batch/ Even i have tried in all the ways The following is my ant target <target name="sonar"> <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"> <!-- Update the following line,