NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

library-inclusion-in-archive not used by -do-ear-dist of EJB module

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
jduprez



Joined: 18 Jan 2010
Posts: 5
Location: South of France

PostPosted: Wed Oct 13, 2010 3:45 pm    Post subject: library-inclusion-in-archive not used by -do-ear-dist of EJB module Reply with quote

Hello,
I have an EJB module that uses a "non-jar" library (the library contains a jar, but also configuration files that are supposed to be in the classpath but out of the library jar).
I added the library in the EJB's project, with "package" checked.

When I do a "Clean and Build" of the EJB project using NetBeans 6.9.1, the conf files are added in the generated EJB jar.
But when a do a "Clean and Build" of the EAR project that contains the EJB, the conf files are NOT added in the generated EJB jar, instead they are added in the EAR.

I think I traces the difference to the Ant target "dist" depending on library-inclusion-in-archive and library-inclusion-in-manifest whereas "do-ear-dist" depends only on "library-inclusion-in-manifest".

What troubles me is, the Ant build executed in command-line (out of NetBeans) still has the conf files in the EJB jar.

Additionally, the conf files used to also be in the EJB jar when I would "Clean&Build" the EAR with NetBeans 6.5.
However, I haven't found differences in these targets when I migrated the project from NB6.5 to 6.9.1. So I assume the difference comes from some Ant cmd-line property that is different between the two version NB6.5/6.9.1

Is this "new" behavior intentional?

N.B.: I think I can work around the issue by forcing library-inclusion-in-archive in some of my build.xml's overridable targets. But I'd like to understand why the behavior is different, as it may be a problem in either of my development/build environment setup.

Thank you in advance,

Jérôme
Back to top
jduprez



Joined: 18 Jan 2010
Posts: 5
Location: South of France

PostPosted: Thu Oct 14, 2010 8:14 am    Post subject: Re: library-inclusion-in-archive not used by -do-ear-dist of EJB module Reply with quote

jduprez wrote:
Hello,
What troubles me is, the Ant build executed in command-line (out of NetBeans) still has the conf files in the EJB jar.


Sorry I was wrong: the problem is observable too when rebuilding the EAR from the command line as follow:
Code:
ant clean dist

It produces the same problem: library conf file are included in the .ear but not in the EJB's jar.

So the only difference is between NB6.5 and NB 6.9.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo