[
http://jira.codehaus.org/browse/MGWT-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Emilio Jose Mena Cebrian reopened MGWT-119:
-------------------------------------------
>From MGWT-60 :
===================================
The Async code generation is a lightweight process, and the inclusion pattern
can be used to avoid uncessary class check.
A timestamp-check would apply after
* scanning for "to-be-generated classes" using pattern
* check for RemoteInterface to be implemented by candidate interfaces
We can know which class have to be generated, and then could use a timestamp
check, only after 90% of the work is allready done.
[ Show ยป ]
nicolas de loof added a comment - 29/Apr/09 02:33 AM The Async code generation
is a lightweight process, and the inclusion pattern can be used to avoid
uncessary class check. A timestamp-check would apply after
* scanning for "to-be-generated classes" using pattern
* check for RemoteInterface to be implemented by candidate interfaces
We can know which class have to be generated, and then could use a timestamp
check, only after 90% of the work is allready done.
===================================
The purpose of this checking is not to do less work.
The purpose is to keep unchanged last modified timestamp
I agree with you: If you use the plugin in a build environment, the checking is
not necessary.
The problem is in a IDE environment.
When the java file is modified, the IDE might decide start a build.
So, i think it's better to preserve generated file timestamp
It's a small checking ( srcFile.lastModified() > targetFile.lastModified() )
but can benefit IDE users.
(I'm working with Eclipse and Maven Integration Plugin for eclipse)
Thanks
> Timestamp checkings for generateAsync and i18n goals
> ----------------------------------------------------
>
> Key: MGWT-119
> URL: http://jira.codehaus.org/browse/MGWT-119
> Project: Maven 2.x GWT Plugin
> Issue Type: Improvement
> Affects Versions: 1.1
> Reporter: Emilio Jose Mena Cebrian
> Priority: Minor
>
> It will be nice to check timestamps of java and properties files and
> generate java classes or interfaces only if those files are newer than
> previously generated ones
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email