[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" />
    </fileset>
  </path>

  <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" />
  </target>
</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.
Thanks,
-Reinhard
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/567529#567529]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- 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