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.
Summary: | Changes in files are not saved | ||
---|---|---|---|
Product: | projects | Reporter: | meme <meme> |
Component: | Maven | Assignee: | Jesse Glick <jglick> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 99588 |
Description
meme
2011-08-23 06:42:52 UTC
There is one workaround: When opening the files from the files-explorer (files-tab) then I'm able to save these files correctly. I think it has to do with the maven plugin which might not allow to write to files in generated-source. (In reply to comment #0) > a) Create a maven project using this archetype: > https://github.com/akquinet/android-archetypes/wiki/Android-release-archetype > b) Import the project in NB I just used the IDE's File > New Project > Maven > Archetype > Add, but OK. > c) try to edit strings.xml or main.xml (which are located under "Generated > Sources (combined-resources)" OK, I edited them and I saved them. So what? > (Yes, these are these which can be edited.) These are generated files under the target/ dir, so of course they will be clobbered every time you do a build. Perhaps you meant to edit the corresponding source files under the res/ dir? (The Android plugin apparently does not follow Maven conventions for project layout, or else the IDE would display a node in the Projects tab under "Other Sources" for your resources. As it is, you can only get to res/ via the Files tab.) Note that the IDE includes no special support for Maven Android projects; see: http://kenai.com/jira/browse/NBANDROID-119 (In reply to comment #2) > These are generated files under the target/ dir, so of course they will be > clobbered every time you do a build. Perhaps you meant to edit the > corresponding source files under the res/ dir? Ahhh... I thought the directories have been the ones in res/... Sorry for that. > > (The Android plugin apparently does not follow Maven conventions for project > layout, or else the IDE would display a node in the Projects tab under "Other > Sources" for your resources. As it is, you can only get to res/ via the Files > tab.) > > Note that the IDE includes no special support for Maven Android projects; see: > http://kenai.com/jira/browse/NBANDROID-119 Yes of course. Now I've got an easier solution than switching always to "files"-section: <build> <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <directory>res/</directory> <excludes> <exclude>**/*</exclude> </excludes> </resource> </resources> ... </build> Within the ide everything looks great. Now I've got to check if everything else is also working. ;) Thanks for the hints. m. (In reply to comment #3) > <resource> > <directory>res/</directory> > <excludes> > <exclude>**/*</exclude> > </excludes> > </resource> OK, sort of a hack but should work so long as I do not implement bug #99588. |