This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 167789 - Include files / folders to a project
Summary: Include files / folders to a project
Status: NEW
Alias: None
Product: javame
Classification: Unclassified
Component: Build System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Suchomel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 11:12 UTC by tambi
Modified: 2009-06-29 12:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tambi 2009-06-29 11:12:16 UTC
Hi 

I'm still trying to migrate from jBuilder 2006 to NetBeans, 
But even the simplest things that we had ther can't be done in NetBeans.

After asking this on the forum and nobody could answered it, i'm openning an issue on it.
It's too important and I don't see how a magor serious project can be done without it.

I'm trying to include a set of files/folder to my project, a very simple task that should be supported by now, but I
could not find how...

In Java ME you can't do this, the closes thing that you can do is: 
properties > build > Libreries & Resources > Add Folder

But doing that is adding the files/folders as resources, in the resource section.
What I would like to see is adding them in the packages section, so I can use them like any other file, including using
them in the project running configuration.

If we have a lot of projects (that happens with JME for the huge amount of different devices)
You can create common files so several projects can use them, and only files specific to these projetcs should be
created per project, all other commomn files just need to be included.


For example:
We have one MIDlet that opening and running a game,
We have created a menu that could be used by all our games, 
We have some games, and each game have several resolutions.

The directory structure looks somthing like this:
com  \ 
         MIDlet.java   --> used by all games
         menu.java     --> used by all games

game_1 \ 
        game \ 
                  game.java       --> used by all resolutions in this game
                  messages.java   --> used by all resolutions in this game
        176x220 \ 
                  game \ 
                         varabels.java
        240x300 \ 
                  game \ 
                         varabels.java
game_2 \ 
        gameCom \ 
                  game.java       --> used by all resolutions in this game
                  messages.java   --> used by all resolutions in this game
        176x220 \ 
                  game \ 
                         varabels.java
        240x300 \ 
                  game \ 
                         varabels.java
                  



I'm creating a project group for game_1
inside we have two projects:
176x220 and 240x300


Now... I'm trying to create each project with all needed files,
After creating project group for each game and openning that project group, What I am expecting to see in the project is
somthing like this:

176x220 \ 
         com  \ 
                MIDlet.java   
                menu.java     
         game \ 
                game.java       
                messages.java
                varabels.java
240x300 \ 
         com  \ 
                MIDlet.java 
                menu.java   
         game \ 
                game.java       
                messages.java
                varabels.java



By the way, in jBuilder, if you have the same file name in the same included folder, 
It give priority for the last added file and override it.
A very important also if you whant to override a file after including a folder with all it's files.


Thanks
Comment 1 Karol Harezlak 2009-06-29 12:31:15 UTC
Thanks for feedback we will evaluate this problem. I'm moving this issue to the FEATURE section and rising priority to P3.