javaee / jaxb2-commons

JAXB Implementation project has been contributed to Eclipse Foundation. This repository is for legacy review only. Please refer to the Eclipse EE4J Metro project for the very latest
https://eclipse-ee4j.github.io/jaxb-ri/
Other
17 stars 15 forks source link

Make the simple regenerator plugin just a little more forgiving... #7

Open glassfishrobot opened 17 years ago

glassfishrobot commented 17 years ago

Hello,

The simple-regenerator plugin version 1.0 preserves code between the following markers:

//-simple-preserve .... //-simple-preserve

However, sometimes you cannot use these exact markers. IDEs like Eclipse sometimes wreck the markers when changing the layout of your code. Also, using these exact markers makes the plugin fail with a mysterious error meesage if you mistakenly do something like this:

//-simple-preserve

====== SUGGESTED FIX ======= In the PluginImpl class, line 43, change the pattern to

"\r?\n p

{Space}*// p{Space}

*-simple-preserve p

{Space}

*\r? n"

It still requires the markers to be on lines of their own, but makes the plugin a little more forgiving of whitespace.

Thanks in advance,

Ben.

Environment

Operating System: All Platform: All

Affected Versions

[current]

glassfishrobot commented 17 years ago

Reported by bentels

glassfishrobot commented 10 years ago

lexi said: The plugin was not ported, seems to be dead.

glassfishrobot commented 17 years ago

Was assigned to kohsuke

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA JAXB2_COMMONS-7