NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Aaron Kaplan Posted via mailing list.
|
Posted: Thu Jul 23, 2009 1:01 pm Post subject: IDE variables in library |
|
|
When adding a jar to a project classpath, there's an option to use a
path that's relative to an IDE variable; but when adding a jar to a
library, there's no equivalent option. Is this by design? If so, why?
I tried editing nblibraries.properties by hand to replace some absolute
paths with variables (not IDE variables but properties defined in
nblibraries-private.properties), and it half-worked. The ant build
succeeded, but the IDE could no longer find the source and javadoc
associated with the library.
-Aaron |
|
| Back to top |
|
 |
tusharvjoshi
Joined: 15 Aug 2008 Posts: 272 Location: Nagpur
|
Posted: Fri Jul 24, 2009 5:51 am Post subject: IDE variables in library |
|
|
Hi,
I see this as a valid point. There shall be a feature which will allow me creating a library for some library XYZ and to add JAR files into that library from some folder like $XYZ_HOME/lib
Is this feature already available in NetBeans? If not this will become a RFE.
with regards
Tushar
==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE
Software Engineer and Senior Project Manager @ Infospectrum India Private Limited, VOC Captain for NetBeans, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://wiki.netbeans.org/VoiceOfCommunity
http://www.jugnagpur.com
On Thu, Jul 23, 2009 at 7:01 PM, Aaron Kaplan <address-removed ([email]address-removed[/email])> wrote:
| Quote: | When adding a jar to a project classpath, there's an option to use a path that's relative to an IDE variable; but when adding a jar to a library, there's no equivalent option. Is this by design? If so, why?
I tried editing nblibraries.properties by hand to replace some absolute paths with variables (not IDE variables but properties defined in nblibraries-private.properties), and it half-worked. The ant build succeeded, but the IDE could no longer find the source and javadoc associated with the library.
-Aaron
|
|
|
| Back to top |
|
 |
giorgio42
Joined: 15 Aug 2008 Posts: 120
|
Posted: Fri Jul 24, 2009 5:52 pm Post subject: IDE variables in library |
|
|
I am missing this feature, too.
Georg
2009/7/24 Tushar Joshi <address-removed ([email]address-removed[/email])>
| Quote: | Hi,
I see this as a valid point. |
|
| Back to top |
|
 |
emiddio-verizon Posted via mailing list.
|
Posted: Fri Jul 24, 2009 5:56 pm Post subject: IDE variables in library |
|
|
you can create your own library with your choice of jar files.
tools/library-manager
gary
| Quote: | ----- Original Message -----
From: Georg Schmid ([email]address-removed[/email])
To: address-removed ([email]address-removed[/email])
Sent: Friday, July 24, 2009 10:52 AM
Subject: Re: [nbusers] IDE variables in library
I am missing this feature, too.
Georg
2009/7/24 Tushar Joshi <address-removed ([email]address-removed[/email])>
| Quote: | Hi,
I see this as a valid point. There shall be a feature which will allow me creating a library for some library XYZ and to add JAR files into that library from some folder like $XYZ_HOME/lib
Is this feature already available in NetBeans? If not this will become a RFE.
with regards
Tushar
==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE
Software Engineer and Senior Project Manager @ Infospectrum India Private Limited, VOC Captain for NetBeans, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://wiki.netbeans.org/VoiceOfCommunity
http://www.jugnagpur.com
On Thu, Jul 23, 2009 at 7:01 PM, Aaron Kaplan <address-removed ([email]address-removed[/email])> wrote:
| Quote: | When adding a jar to a project classpath, there's an option to use a path that's relative to an IDE variable; but when adding a jar to a library, there's no equivalent option. Is this by design? If so, why?
I tried editing nblibraries.properties by hand to replace some absolute paths with variables (not IDE variables but properties defined in nblibraries-private.properties), and it half-worked. The ant build succeeded, but the IDE could no longer find the source and javadoc associated with the library.
-Aaron
|
|
|
|
|
| Back to top |
|
 |
giorgio42
Joined: 15 Aug 2008 Posts: 120
|
Posted: Fri Jul 24, 2009 10:14 pm Post subject: IDE variables in library |
|
|
Sure, but the absolute path to the jars will end up in the library definition. If you develop on Windows and Unix, these paths will probably be different (for instance, because the Unix system administrator forces you store your stuff in certain locations). Thus the library definitions on the Windows box will point to non-existing jars if you try to use them on the Unix box. Thus you may have to create 50 or 100 library definitions two times...
Georg
2009/7/24 emiddio-verizon <address-removed ([email]address-removed[/email])>
| Quote: | you can create your own library with your choice of jar files.
|
|
| Back to top |
|
 |
tusharvjoshi
Joined: 15 Aug 2008 Posts: 272 Location: Nagpur
|
Posted: Sat Jul 25, 2009 4:15 am Post subject: IDE variables in library |
|
|
I have filed a RFE at http://www.netbeans.org/issues/show_bug.cgi?id=169161
with regards
Tushar
==============================================
Tushar Joshi, Nagpur
MCSD_NET C#, SCJP, RHCE
Software Engineer and Senior Project Manager @ Infospectrum India Private Limited, VOC Captain for NetBeans, JUGNagpur Leader
http://www.info-spectrum.com
http://www.tusharvjoshi.com
http://wiki.netbeans.org/VoiceOfCommunity
http://www.jugnagpur.com
On Sat, Jul 25, 2009 at 3:44 AM, Georg Schmid <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Sure, but the absolute path to the jars will end up in the library definition. If you develop on Windows and Unix, these paths will probably be different (for instance, because the Unix system administrator forces you store your stuff in certain locations). Thus the library definitions on the Windows box will point to non-existing jars if you try to use them on the Unix box. Thus you may have to create 50 or 100 library definitions two times...
Georg
|
|
|
| Back to top |
|
 |
|
|
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
|
|
|
|