[jboss-user] [JBoss Tools] - How to build a ear file with JBOSS Tools outside of Eclipse

Reinhard Nappert do-not-reply at jboss.com
Wed Oct 20 17:00:11 EDT 2010

Reinhard Nappert [http://community.jboss.org/people/rnappert] created the discussion

"How to build a ear file with JBOSS Tools outside of Eclipse"

To view the discussion, visit: http://community.jboss.org/message/567529#567529

Hi, I am able to build an ear file with the JProject Archive Builder, however I want to be able to build the ear file outside of eclipse, without writing a new ant build.xml file, doing exactly what the Project Archive Builder does.
I wrote a build.xml wuth a taskdef, which supposed to do exactly that:
<project name="Name" default="run-packaging">
  <property name="eclipse.home" location="c:/eclipse" />

  <path id="generate-archives-classpath">
    <fileset dir="${eclipse.home}/plugins">
      <include name="org.eclipse.equinox.common_*.jar" />
      <include name="org.jboss.ide.eclipse.archives.core_3.2**/archivescore.jar" />
      <include name="org.jboss.ide.eclipse.archives.core_3.2**/lib/*.jar" />

  <taskdef name="generate-archives" classpathref="generate-archives-classpath" classname="org.jboss.ide.eclipse.archives.core.ant.GenerateArchivesTask" />

  <target name="run-packaging">
      <generate-archives projectPath="C:/Workspaces/Project" />

However, when I run ant -f <filename> run-packaging, I get the following error message:
Cannot build archive "Project.ear" due to a problem in the archive's configuration

I would assume that the archive's configuration is fine, otherwise it would not build within eclipse.

Any pointers are appreciated.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101020/f1aff7b0/attachment.html 

More information about the jboss-user mailing list