Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363750 - RUI deployment doesn't work when a package specifies a JS generator and the project does not
Summary: RUI deployment doesn't work when a package specifies a JS generator and the p...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Yun Feng Ma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-14 16:00 EST by Justin Spadea CLA
Modified: 2017-02-23 14:19 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Spadea CLA 2011-11-14 16:00:56 EST
Set the project-level JS generation directory to "generatedJavaScript", then for one of the packages containing RUIHandlers override the JS generation directory to "genJS2". When you deploy the files in "genJS2" will not get copied and the application cannot run.

Now disable the JS generator at the project level, but leave it on at the package containing the RUIHandlers, try to deploy, and get an NPE inside Util.combineArray().
Comment 1 Yun Feng Ma CLA 2011-11-15 22:19:34 EST
Hi Justin,

I can not recreate your first issue (js files in genJS2 are not copied). the NPE has been fixed.

For a RUI project, the project-level compile must have Javascript, otherwize no js files will be copied, even if the sub-folders hasve Javascript compiler. Thanks.
Comment 2 Yun Feng Ma CLA 2011-11-15 22:20:14 EST
Sorry, reopen it, waiting for your reply. Thanks.
Comment 3 Justin Spadea CLA 2011-11-16 09:42:46 EST
Something must have been out of whack on my debug environment, I'm no longer able to recreate the issue about overrided generators being excluded.

As for the first issue where you need the JS generator enabled at the project level to support deploying RUI applications, I do not agree with this restriction. If we're smart enough to copy the alternate directories, why are we not smart enough to know about them when the project level has no JS generator? This isn't critical for 0.7 and should be deferred, but we shouldn't resolve this defect until it gets fixed in a future release.
Comment 4 Yun Feng Ma CLA 2011-11-16 22:05:17 EST
Lower down the priority to normal. Thanks.
Comment 5 Yun Feng Ma CLA 2011-12-21 02:35:09 EST
Fixed. Thanks.
Comment 6 Justin Spadea CLA 2012-02-20 13:47:57 EST
Verified.