Hello,
I made a jar that is able to replace all occurrences of a regular
expression of a file or file extension. It can be called using pom.
A example:
C:\wde\jvm\jdk5\bin\java -jar RegularReplacer1-5.jar "C:\wde\eclipse-
workspaces\main\ria\target\webb-2.0\br.com.webb.ria.Application"
".cache.html" "([^a-zA-Z0-9_])top\((" "$1topazio\("
This will replace all the occurrences of "top"( by "topazio(", in
the .cache.html files in the C:\wde\eclipse-workspaces\main\ria\target
\webb-2.0\br.com.webb.ria.Application directory.
Webb 2-0 is our project. You should point it to the place that GWT
generates yours .cache.html files. Of course, it could be used for
more things.
Using it with pom.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1.1</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>MainPackage.Main</mainClass>
<arguments>
<argument>./target/webb-2.0/br.com.webb.ria.Application</
argument>
<argument>.cache.html</argument>
<argument><![CDATA[([^a-zA-Z0-9_])top\(]]></argument>
<argument><![CDATA[$1topazio\(]]></argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
I made this code, and it is free and open source.
I will find a place to host the program an source an post a link.
If you want it before that, send me a email.
Thanks
On 12 jun, 15:38, Sky <[email protected]> wrote:
> Ya, I would seriously suggest upgrading to the GWT 2.0.1 because so
> many tiny little bugs have been fixed over all the releases. You'll
> have to start a new project and copy your code over to deal with the
> structure changes and other little stuff that changed in the project
> since GWT 1.5. It's not very hard to convert an app to a new project
> with a newer GWT. Most of the deprecated code still works I'm pretty
> sure. Event listeners and all that still work.
>
> gl ^_^
>
> On Jun 12, 10:45 am, Thomas Broyer <[email protected]> wrote:
>
> > On 11 juin, 23:05, elifarley <[email protected]> wrote:
>
> > > I'd like to know if you guys have faced the same problem I'm facing,
> > > and how you are dealing with it.
>
> > > Sometimes, a small and harmless change in a Java class ensues strange
> > > errors at runtime.
>
> > > These errors only happen if BOTH conditions below are true:
>
> > > 2) the application is run on Google Chrome, and
>
> > > 1) the GWT JavaScript compiler output style is set to 'OBF'.
>
> > > So, running the application on Firefox or IE always works.
> > > Running with the output style set to 'pretty' or 'detailed' always
> > > works, even on Google Chrome.
>
> > > Here's an example of error message that I got:
>
> > > "((TypeError): Property 'top' of object [object DOMWindow] is not
> > > a function stack"
>
> > > And here's what I have:
> > > - GWT 1.5.3
> > > - GXT 1.2.4
> > > - Google Chrome 4 and 5
> > > - Windows XP
>
> > > In order to get rid of this Heisenbug, I have to either deploy my
> > > application without obfuscation or endure a time-consuming trial-and-
> > > error process in which I re-implement the change in slightly different
> > > ways and re-run the application, until the GWT compiler is happy with
> > > my code.
>
> > > Would you have a better idea on how to avoid this?
>
> > Which GWT version are you using?
> > This seems related
> > tohttp://code.google.com/p/google-web-toolkit/issues/detail?id=4117
> > but it seems to me that this was fixed in GWT 1.6
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.