Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

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

Open
glassfishrobot opened this issue Jun 23, 2007 · 4 comments

Comments

@glassfishrobot
Copy link
Contributor

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
Copy link
Contributor Author

Reported by bentels

@glassfishrobot
Copy link
Contributor Author

Was assigned to kohsuke

@glassfishrobot
Copy link
Contributor Author

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

@glassfishrobot
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant