You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Alex Boisvert (JIRA)" <ji...@apache.org> on 2010/03/03 16:04:27 UTC

[jira] Created: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

xmlbeans task does not detect changes in xsd files or new xsd files
-------------------------------------------------------------------

                 Key: BUILDR-393
                 URL: https://issues.apache.org/jira/browse/BUILDR-393
             Project: Buildr
          Issue Type: Bug
    Affects Versions: 1.3.5
            Reporter: Alex Boisvert
            Assignee: Alex Boisvert
             Fix For: 1.4
         Attachments: buildr-xmlbeans.zip

Will Rogers reported on the users@ mailing list,
http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E

I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
:xsd)' in my project definition.

1. I'm observing a similar problem to the one I reported yesterday
with the resources task. I edited one of my files in src/main/xsd and
ran "buildr package". Output:

Building myproject
Running XMLBeans schema compiler
←[34mredefining Project←[0m
Time to build schema type system: 1.727 seconds
Time to generate code: 12.038 seconds
Compiling myproject into C:/blah/myproject/target/classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Packaging myproject
Running integration tests...
←[32mCompleted in 1m2.352s←[0m

NOTE: myproject.jar was NOT updated. I checked target/classes and
verified that the XMLBeans were recompiled and have newer modified
dates than the jar. Shouldn't that trigger the package task
reassembling the jar? Can anyone verify this?

2. Adding a brand new file to src/main/xsd is not detected by the
XMLBeans support at all. I did a "buildr clean package", copied a new
XSD into src/main/xsd, and then did a "buildr package". Output:

Building myproject
Packaging myproject
Running integration tests...
←[32mCompleted in 2.723s←[0m

Schema generation did not run, compile did not run, and packaging did
not run. The new file was ignored.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Will Rogers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840721#action_12840721 ] 

Will Rogers commented on BUILDR-393:
------------------------------------

Reproduction steps for #1:

1. Extract sample project attached.
2. "buildr package"
3. Edit src/main/xsd/EasyPO.xsd and add an element to it, e.g. '<xs:element name="phone" type="xs:string"/>' under "customer".
4. "buildr package"

EXPECTED RESULT:
buildr-xmlbeans-0.1.jar is repacked and contains the recompiled class files

ACTUAL RESULT:
buildr-xmlbeans-0.1.jar was NOT repacked and target/classes/org/apache/xmlbeans/samples/enumeration/schemaenum/easypo/Customer.class has a newer mtime than the jar

jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java]
buildr 1.3.5

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Will Rogers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Rogers updated BUILDR-393:
-------------------------------

    Attachment: buildr.log.gz

Attached output of command requested above. Class loading output stops around line 1450 and compilation starts.

Regarding issue #2, the same thing happens if you delete an XSD file -- no code generation, no compile, no package. In that case there's no file to touch, no mtime to compare. This is not as critical to me as issue #1, but it still seems fairly important.

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840817#action_12840817 ] 

Alex Boisvert commented on BUILDR-393:
--------------------------------------

At first sight, it seems like this may be related to timestamps (and their resolution) on Windows filesystem.  I'll have to do more testing... to be continued.

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Will Rogers (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Rogers updated BUILDR-393:
-------------------------------

    Attachment: PriceSummarySpecial.xsd

sample XSD file for reproducing issue #2

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840752#action_12840752 ] 

Alex Boisvert commented on BUILDR-393:
--------------------------------------

Hmmmm.  I can't reproduce #1 with the steps you provided.   I'm running jruby 1.4.0 & buildr 1.3.5 on Ubuntu 9.10.  Can you attach the output of step 4 (or equivalent):

jruby -S buildr --trace package 2>&1 | tee buildr.log

For #2, this is the expected behavior right now.  The new file should have a newer mtime than target/generated/xmlbeans.  It's certainly possible to fix this but requires additional code/work to handle this case.

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme updated BUILDR-393:
----------------------------------

    Fix Version/s: 1.4.2
                       (was: 1.4.1)

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4.2
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antoine Toulme updated BUILDR-393:
----------------------------------

    Fix Version/s: 1.4.1
                       (was: 1.4)

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4.1
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Antoine Toulme (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12858260#action_12858260 ] 

Antoine Toulme commented on BUILDR-393:
---------------------------------------

Can we drop this issue for 1.4 and fix it in next release ? I'm afraid I can't help myself, I have no windows systems at home.

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

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

       

[jira] Updated: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Boisvert updated BUILDR-393:
---------------------------------

    Fix Version/s:     (was: 1.4.3)
                   1.4.4

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4.4
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Boisvert updated BUILDR-393:
---------------------------------

    Attachment: buildr-xmlbeans.zip

I can't reproduce these issues with the attached project.

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Will Rogers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840724#action_12840724 ] 

Will Rogers commented on BUILDR-393:
------------------------------------

Reproduction steps for #2:

1. Extract sample project attached.
2. "buildr package"
3. Copy attached PriceSummarySpecial.xsd to src/main/xsd
4. "buildr package"

EXPECTED RESULT:
XML schema generation runs and generates code for PriceSummarySpecial.xsd

ACTUAL RESULT:
The new schema is ignored.

NOTE:
I believe the trigger is that PriceSummarySpecial.xsd has an older mtime than target/generated/xmlbeans

jruby 1.4.0 (ruby 1.8.7 patchlevel 174) (2009-11-02 69fbfa3) (Java HotSpot(TM) Client VM 1.6.0_18) [x86-java] 
buildr 1.3.5

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Boisvert updated BUILDR-393:
---------------------------------

    Fix Version/s: 1.4.3
                       (was: 1.4.2)

> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4.3
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Issue Comment Edited: (BUILDR-393) xmlbeans task does not detect changes in xsd files or new xsd files

Posted by "Will Rogers (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12840769#action_12840769 ] 

Will Rogers edited comment on BUILDR-393 at 3/3/10 6:09 PM:
------------------------------------------------------------

Attached output of command requested above. Class loading output stops around line 1450 and compilation starts.

Regarding issue #2, the same thing happens if you delete an XSD file -- no code generation, no compile, no package. In that case there's no file to touch, no mtime to compare. This is not as critical to me as issue #1, but it still seems fairly important.

I am on Windows 7 x64.

      was (Author: wjrogers):
    Attached output of command requested above. Class loading output stops around line 1450 and compilation starts.

Regarding issue #2, the same thing happens if you delete an XSD file -- no code generation, no compile, no package. In that case there's no file to touch, no mtime to compare. This is not as critical to me as issue #1, but it still seems fairly important.
  
> xmlbeans task does not detect changes in xsd files or new xsd files
> -------------------------------------------------------------------
>
>                 Key: BUILDR-393
>                 URL: https://issues.apache.org/jira/browse/BUILDR-393
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>            Reporter: Alex Boisvert
>            Assignee: Alex Boisvert
>             Fix For: 1.4
>
>         Attachments: buildr-xmlbeans.zip, buildr.log.gz, PriceSummarySpecial.xsd
>
>
> Will Rogers reported on the users@ mailing list,
> http://mail-archives.apache.org/mod_mbox/buildr-users/201003.mbox/%3C323a37201003021637p1c518967w5012e796774b6903@mail.gmail.com%3E
> I'm using 'buildr/xmlbeans' and 'compile_xml_beans _(:source, :main,
> :xsd)' in my project definition.
> 1. I'm observing a similar problem to the one I reported yesterday
> with the resources task. I edited one of my files in src/main/xsd and
> ran "buildr package". Output:
> Building myproject
> Running XMLBeans schema compiler
> ←[34mredefining Project←[0m
> Time to build schema type system: 1.727 seconds
> Time to generate code: 12.038 seconds
> Compiling myproject into C:/blah/myproject/target/classes
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 1m2.352s←[0m
> NOTE: myproject.jar was NOT updated. I checked target/classes and
> verified that the XMLBeans were recompiled and have newer modified
> dates than the jar. Shouldn't that trigger the package task
> reassembling the jar? Can anyone verify this?
> 2. Adding a brand new file to src/main/xsd is not detected by the
> XMLBeans support at all. I did a "buildr clean package", copied a new
> XSD into src/main/xsd, and then did a "buildr package". Output:
> Building myproject
> Packaging myproject
> Running integration tests...
> ←[32mCompleted in 2.723s←[0m
> Schema generation did not run, compile did not run, and packaging did
> not run. The new file was ignored.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.