Custom Ant Publisher for JBoss 4.2 Server [message #220145] |
Thu, 04 September 2008 14:11  |
Eclipse User |
|
|
|
Originally posted by: jlar310.yahoo.com
My EJB jar file requires additional classes that the default
publisher fails to include. So I wrote an ant build file to make
my jar file just how I want it.
I was working on creating ant targets to drop my custom jar file
in the JBoss deploy directory when, quite by accident, I
discovered that if I double clicked "JBoss v4.2 at localhost" in
the "Servers" view, it opened a property page with a section
called "Ant Publisher Properties".
However, I am unable to make this work and I can find no useful
documentation. Whatever I put in the "Build File" field, I get a
popup titled "Server Editor" that says "Property can not be found".
And if it did accept my build file, what else do I need to know?
What target will it attempt to call in order to publish?
So, what's the deal? Is this a broken feature? How can I make
this work for me? I would prefer to use the built-in publishing
features instead of having to remember to re-publish manually
with my own ant file.
Eclipse 3.4
org.eclipse.jst.server.generic.jboss v1.5.205
Thanks,
Jeff
|
|
|
Re: Custom Ant Publisher for JBoss 4.2 Server [message #223559 is a reply to message #220145] |
Thu, 06 November 2008 04:22   |
Eclipse User |
|
|
|
Jeff wrote:
> My EJB jar file requires additional classes that the default
> publisher fails to include. So I wrote an ant build file to make
> my jar file just how I want it.
> I was working on creating ant targets to drop my custom jar file
> in the JBoss deploy directory when, quite by accident, I
> discovered that if I double clicked "JBoss v4.2 at localhost" in
> the "Servers" view, it opened a property page with a section
> called "Ant Publisher Properties".
> However, I am unable to make this work and I can find no useful
> documentation. Whatever I put in the "Build File" field, I get a
> popup titled "Server Editor" that says "Property can not be found".
> And if it did accept my build file, what else do I need to know?
> What target will it attempt to call in order to publish?
> So, what's the deal? Is this a broken feature? How can I make
> this work for me? I would prefer to use the built-in publishing
> features instead of having to remember to re-publish manually
> with my own ant file.
> Eclipse 3.4
> org.eclipse.jst.server.generic.jboss v1.5.205
> Thanks,
> Jeff
I have the same problem with client JARs, because we use Data Transport
Objects to communicate clients and servers and they must be distributed in
the client JARs with the needed EJB interfaces.
We are migrating from a JBuilder project structure; JAR generation and
deployment is a real mess!!! With one more difficult task : generating an
uncompressed EAR/WAR strucure :-).
I look at .project files, and I found the <parameters> tag for builders...
Do you know what parameters have the EAR/WAR/JAR builders? Maybe here is
the solution.
|
|
|
|
Re: Custom Ant Publisher for JBoss 4.2 Server [message #228722 is a reply to message #228716] |
Tue, 10 March 2009 05:19  |
Eclipse User |
|
|
|
Originally posted by: wknauf_NO_._INSIDE_hg-online.de
Hi Daniel,
I think you have to modify "jboss323.xml". Maybe you can call your custom
buildfile depending on the project name.
Best regards
Wolfgang
Daniel Kranowski schrieb:
>
> At first I thought I was getting the Server Editor error because after
> Browsing to my build.xml file it was entered into the Build File field
> as {$workspace_loc:/myprjname/build.xml}. Then I re-entered it with an
> absolute path "C:\mywkspace\myprjname\build.xml" and got the same
> "Property cannot be found" error.
>
> I can right-click on build.xml and do Run As > Ant Build (choosing a
> deploy step) but then the Server still says Republish not Synchronized,
> which is misleading. And what's worse, whenever I restart the Server it
> invokes Publish on the default jboss323.xml buildfile, which overwrites
> my manual Ant Build.
>
> Daniel
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03434 seconds