NetBeans Forums

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

How to build Netbeans Project in command line without Netbeans

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



Joined: 03 Jun 2011
Posts: 1

PostPosted: Fri Jun 03, 2011 5:52 pm    Post subject: How to build Netbeans Project in command line without Netbeans Reply with quote

Hi,

I have a Netbeans project that I want to build with the command line on another computer without Netbeans installed. I know Netbeans has a nbproject folder with build-impl.xml and other xml files. I was wondering if anyone knows how to modify the build file so it doesn't need the files in the nbproject folder. Or any other way to to build this project without the need of Netbeans. If someone could help me or point me somewhere I would greatly appreciate it.

Thanks
Back to top
Brad Cox
Posted via mailing list.





PostPosted: Mon Jun 06, 2011 3:18 am    Post subject: How to build Netbeans Project in command line without Netbeans Reply with quote

You also need all your dependency jars on the other system in the same location ant expects them.

I suggest avoiding ant for precisely this reason. Use maven instead. NB supports both and they have exactly the same effect.

On Sun, Jun 5, 2011 at 5:15 PM, Jari Fredriksson <address-removed ([email]address-removed[/email])> wrote:
Quote:
3.6.2011 20:52, Bizu kirjoitti:
Quote:
Hi,

I have a Netbeans project that I want to build with the command line on another computer without Netbeans installed. I know Netbeans has a nbproject folder with build-impl.xml and other xml files. I was wondering if anyone knows how to modify the build file so it doesn't need the files in the nbproject folder. Or any other way to to build this project without the need of Netbeans. If someone could help me or point me somewhere I would greatly appreciate it.

Thanks



ant build

That is all that is needed. You need of course separate ant
installation, if you do not have Netbeans.

--

Let him choose out of my files, his projects to accomplish.
               -- Shakespeare, "Coriolanus"




--
Cell: 703-594-1883
Blog: http://bradjcox.blogspot.com
Web: http://virtualschool.edu
Manassas VA 20111
Back to top
Brett Bergquist
Posted via mailing list.





PostPosted: Mon Jun 06, 2011 11:37 pm    Post subject: How to build Netbeans Project in command line without Netbeans Reply with quote

Oh come now.  Ant properties can be set on the command line, in properties files, etc. that change the location of dependent jars, etc.   I do this all the time when building with ant.  Maven is no panacea for dependency management.  I just went to rebuild an older open source project and cannot because the dependencies that it depending on are no longer available through Maven’s dependency resolver.    So if you are not maintaining a local repository, later on down the road, it might bite you Wink

Ant and Maven are tools and each has its strengths and weaknesses.

Just my opinion of course.

Brett

From: Brad Cox [mailto:address-removed]
Sent: Sunday, June 05, 2011 10:40 PM
To: address-removed
Subject: [nbusers] Re: How to build Netbeans Project in command line without Netbeans


You also need all your dependency jars on the other system in the same location ant expects them.

I suggest avoiding ant for precisely this reason. Use maven instead. NB supports both and they have exactly the same effect.
On Sun, Jun 5, 2011 at 5:15 PM, Jari Fredriksson <address-removed ([email]address-removed[/email])> wrote:
3.6.2011 20:52, Bizu kirjoitti:
Quote:
Hi,

I have a Netbeans project that I want to build with the command line on another computer without Netbeans installed. I know Netbeans has a nbproject folder with build-impl.xml and other xml files. I was wondering if anyone knows how to modify the build file so it doesn't need the files in the nbproject folder. Or any other way to to build this project without the need of Netbeans. If someone could help me or point me somewhere I would greatly appreciate it.

Thanks


ant build

That is all that is needed. You need of course separate ant
installation, if you do not have Netbeans.

--

Let him choose out of my files, his projects to accomplish.
-- Shakespeare, "Coriolanus"



--
Cell: 703-594-1883
Blog: http://bradjcox.blogspot.com
Web: http://virtualschool.edu
Manassas VA 20111
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans 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