Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-22-2008, 07:05 AM
sylvpan's Avatar
Member
 
Join Date: Mar 2008
Location: beijing,China
Posts: 5
sylvpan is on a distinguished road
Send a message via MSN to sylvpan
How can I change a project's build directory?
My English is poor,I will try my best to give a accurate description of this question!
OS:Linux AS 4
IDE: netbeans 5.5
project folder : /javawork/webapp1
build folder: /javawork/webapp1/build/
I don't like build in build folder.How can I change build folder into project folder?
"/javawork/webapp1/build/web ----> /javawork/webapp1/"

Thank you very much!
__________________
one for all,all for one!
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-24-2008, 03:05 AM
sylvpan's Avatar
Member
 
Join Date: Mar 2008
Location: beijing,China
Posts: 5
sylvpan is on a distinguished road
Send a message via MSN to sylvpan
nobody tell me!
__________________
one for all,all for one!
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 03-25-2008, 11:49 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
I can't find such a setting can be change. An why don't you worried about the class files in build folder. In most of the cases you can use the project jar file in the dist folder.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 03-26-2008, 03:14 AM
sylvpan's Avatar
Member
 
Join Date: Mar 2008
Location: beijing,China
Posts: 5
sylvpan is on a distinguished road
Send a message via MSN to sylvpan
Thanks for Eranga's answer!
In my project there is an XML file in web/web-inf/.It contains this website name,database server's ip,database's account and password!
Example:
<root>
<appName>desinged by sylvester</appName>
<appUrl>http://localhost:8080/sylv/</appUrl>
<appServerPath>file:///javawork/myWeb1/build/web/</appServerPath>
<appUploadFilePath>file:///javawork/myWeb1/build/web/upfile/</appUploadFilePath>
<appPageSize>20</appPageSize>
<appDbConf>
<dbHost>127.0.0.1</dbHost>
<dbPort>3306</dbPort>
<dbName>myapp</dbName>
<dbUser>sylvester</dbUser>
<dbPwd>sylv</dbPwd>
</appDbConf>
</root>

I desined a class can get these parameters from this xml,and the class can update this xml file. So I need to know this file's absolute path in disk.When construct the class which can update xmlfile,I use "this.getClass().getResource()" get the path.So,the classs in build folder and the class src folder will get two different paths.It's a difficulty when I debug my project!
That is all my mind!
Maybe my mind is wrong?
By the way ,can I add your name in buddy list??
__________________
one for all,all for one!

Last edited by sylvpan : 03-26-2008 at 03:21 AM. Reason: there some syntax error
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 03-26-2008, 03:22 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Why you need the class path for this. Wherever the class is, only you need the correct path of XML file. If I got your requirement correctly, just you want to read a XML file and update a XML file. Isn't it?

Quote:
Originally Posted by sylvpan View Post
By the way ,can I add your name in buddy list??
It's up to you. But one day I'm in your ignore list
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 03-27-2008, 03:06 AM
sylvpan's Avatar
Member
 
Join Date: Mar 2008
Location: beijing,China
Posts: 5
sylvpan is on a distinguished road
Send a message via MSN to sylvpan
[quote=Eranga;15439] If I got your requirement correctly, just you want to read a XML file and update a XML file. Isn't it?[/QUOTE=Eranga;15439]
yes,you're right!I handled the problem.I think my desinged before is wrong!
__________________
one for all,all for one!

Last edited by sylvpan : 03-27-2008 at 03:14 AM. Reason: wrong pattern
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 03-27-2008, 03:42 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Nice to here that pal. So now you no need to change the build folder path, right?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 06-06-2008, 02:20 PM
pao pao is offline
Member
 
Join Date: Jun 2008
Posts: 41
pao is on a distinguished road
Hi, this is quite easy to fix!! I will try to explain as simply as I can:

1) In netbeans press Ctrl-2 to bring up the files window;

2) Expand the project you are interested in and open the folder "nbproject";

3) Double click the file "project.properties";

4) Edit this value: build.dir=c:/webapps/MyProject/WEB-INF (Obviously put the location you want your class files to go to!).

And thats it, simple, I hope this helps you.
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 06-09-2008, 09:37 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Ya, quite simple way. But I don't think it's good idea to deal with such files, since have a good idea on them. Anyway, nice tip.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 06-09-2008, 12:06 PM
pao pao is offline
Member
 
Join Date: Jun 2008
Posts: 41
pao is on a distinguished road
What do you mean? Not deal with such files? This xml file is your project properties file and it there for you to change, otherwise your classes will always build into the default directory.

Quite often than is not what you want, especially if you are running a web app under tomcat for instance.
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 06-09-2008, 12:54 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 2,338
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
No, what I'm try to say, that is not a good idea to change default values on the properties file if you know what exactly doing. Lots of people are really newbie for NetBeans. Even on Java(even not affected to this.)

I think it's clear now what I try to say.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Teamwork 3.2.1 build 1540 JavaBean Java Announcements 0 11-09-2007 11:37 PM
Teamwork 3.2.1 build 1540 JavaBean Java Announcements 0 11-08-2007 05:22 PM
Teamwork 3.2.1 build 1384 JavaBean Java Announcements 0 10-25-2007 05:35 PM
Teamwork 3.2.0 build 414 JavaBean Java Announcements 0 07-11-2007 04:13 PM
Stable Build: Eclipse 3.3M6 goldhouse Java Announcements 0 04-02-2007 03:27 PM


All times are GMT +3. The time now is 03:17 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org