[ 
https://issues.apache.org/jira/browse/CB-605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13265001#comment-13265001
 ] 

Drew Walters commented on CB-605:
---------------------------------

Simple fix would be to simply check if the string has changed:

var origsrc = src = fs.readFileSync(file, 'utf8');
...
if (origsrc !== src) {
    // write it out yo
    fs.writeFileSync(file, src, 'utf8');
}

Is this acceptable or is there something more efficient?
                
> Running a build modifies every file in lib
> ------------------------------------------
>
>                 Key: CB-605
>                 URL: https://issues.apache.org/jira/browse/CB-605
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: 1.7.0
>            Reporter: Drew Walters
>            Priority: Trivial
>             Fix For: 1.7.0
>
>
> The build process (Jakefile) was enhanced to automatically enforce some style 
> guidelines on files in the lib folder. Every file is rewritten regardless of 
> whether a change was made or not. Currently, this is causing the modification 
> date to change on every file in lib every time a build is performed. This 
> causes some development tools to assume the file has changed when it may not 
> have.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to