You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Antoine Toulme (JIRA)" <ji...@apache.org> on 2010/09/02 19:57:56 UTC

[jira] Created: (BUILDR-503) Include with path includes directories as files when the directory has the same name as the path

Include with path includes directories as files when the directory has the same name as the path
------------------------------------------------------------------------------------------------

                 Key: BUILDR-503
                 URL: https://issues.apache.org/jira/browse/BUILDR-503
             Project: Buildr
          Issue Type: Bug
    Affects Versions: 1.4.1
            Reporter: Antoine Toulme
            Priority: Critical
             Fix For: 1.4.2


Here is an example:

write "some/custom/structure/myfile.txt", ""

define "foo", :version => "1.0" do
  package(:jar).include _("some/custom/structure"), :as => "var/my/structure"
end

Opening the jar shows this error:
Archive:  foo-1.0.jar
   creating: META-INF/
  inflating: META-INF/MANIFEST.MF    
   creating: var/
   creating: var/my/
  inflating: var/my/structure        
checkdir error:  var/my/structure exists but is not directory
                 unable to process var/my/structure/.
checkdir error:  var/my/structure exists but is not directory
                 unable to process var/my/structure/myfile.txt.





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


[jira] Assigned: (BUILDR-503) Include with as includes directories as files when the directory has the same name as the path

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

Antoine Toulme reassigned BUILDR-503:
-------------------------------------

    Assignee: Antoine Toulme

> Include with as includes directories as files when the directory has the same name as the path
> ----------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-503
>                 URL: https://issues.apache.org/jira/browse/BUILDR-503
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4.2
>
>
> Here is an example:
> write "some/custom/structure/myfile.txt", ""
> define "foo", :version => "1.0" do
>   package(:jar).include _("some/custom/structure"), :as => "var/my/structure"
> end
> Opening the jar shows this error:
> Archive:  foo-1.0.jar
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF    
>    creating: var/
>    creating: var/my/
>   inflating: var/my/structure        
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/.
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/myfile.txt.

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


[jira] Updated: (BUILDR-503) Include with as includes directories as files when the directory has the same name as the path

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

Antoine Toulme updated BUILDR-503:
----------------------------------

    Summary: Include with as includes directories as files when the directory has the same name as the path  (was: Include with path includes directories as files when the directory has the same name as the path)

> Include with as includes directories as files when the directory has the same name as the path
> ----------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-503
>                 URL: https://issues.apache.org/jira/browse/BUILDR-503
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>            Reporter: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4.2
>
>
> Here is an example:
> write "some/custom/structure/myfile.txt", ""
> define "foo", :version => "1.0" do
>   package(:jar).include _("some/custom/structure"), :as => "var/my/structure"
> end
> Opening the jar shows this error:
> Archive:  foo-1.0.jar
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF    
>    creating: var/
>    creating: var/my/
>   inflating: var/my/structure        
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/.
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/myfile.txt.

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


[jira] Commented: (BUILDR-503) Include with as includes directories as files when the directory has the same name as the path

Posted by "Jean-Philippe Caruana (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12912959#action_12912959 ] 

Jean-Philippe Caruana commented on BUILDR-503:
----------------------------------------------

this is working fine on the example I gave in BUILDR-502, but I stil got the problem with one of my tgzs under buildr 1.4.2. I haven't isolated the differences

> Include with as includes directories as files when the directory has the same name as the path
> ----------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-503
>                 URL: https://issues.apache.org/jira/browse/BUILDR-503
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4.2
>
>
> Here is an example:
> write "some/custom/structure/myfile.txt", ""
> define "foo", :version => "1.0" do
>   package(:jar).include _("some/custom/structure"), :as => "var/my/structure"
> end
> Opening the jar shows this error:
> Archive:  foo-1.0.jar
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF    
>    creating: var/
>    creating: var/my/
>   inflating: var/my/structure        
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/.
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/myfile.txt.

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


[jira] Resolved: (BUILDR-503) Include with as includes directories as files when the directory has the same name as the path

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

Antoine Toulme resolved BUILDR-503.
-----------------------------------

    Resolution: Fixed

14:09:50~/w/buildr>svn ci -m CHANGELOG spec/packaging/archive_spec.rb lib/buildr/packaging/archive.rb -m "BUILDR-503 Include with as includes directories as files when the directory has the same name as the path"
Sending        lib/buildr/packaging/archive.rb
Sending        spec/packaging/archive_spec.rb
Transmitting file data ..
Committed revision 998327.

> Include with as includes directories as files when the directory has the same name as the path
> ----------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-503
>                 URL: https://issues.apache.org/jira/browse/BUILDR-503
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4.2
>
>
> Here is an example:
> write "some/custom/structure/myfile.txt", ""
> define "foo", :version => "1.0" do
>   package(:jar).include _("some/custom/structure"), :as => "var/my/structure"
> end
> Opening the jar shows this error:
> Archive:  foo-1.0.jar
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF    
>    creating: var/
>    creating: var/my/
>   inflating: var/my/structure        
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/.
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/myfile.txt.

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


[jira] Commented: (BUILDR-503) Include with as includes directories as files when the directory has the same name as the path

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

Hudson commented on BUILDR-503:
-------------------------------

Integrated in Buildr-ci-build #121 (See [https://hudson.apache.org/hudson/job/Buildr-ci-build/121/])
    

> Include with as includes directories as files when the directory has the same name as the path
> ----------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-503
>                 URL: https://issues.apache.org/jira/browse/BUILDR-503
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4.2
>
>
> Here is an example:
> write "some/custom/structure/myfile.txt", ""
> define "foo", :version => "1.0" do
>   package(:jar).include _("some/custom/structure"), :as => "var/my/structure"
> end
> Opening the jar shows this error:
> Archive:  foo-1.0.jar
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF    
>    creating: var/
>    creating: var/my/
>   inflating: var/my/structure        
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/.
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/myfile.txt.

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


[jira] Commented: (BUILDR-503) Include with as includes directories as files when the directory has the same name as the path

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

Antoine Toulme commented on BUILDR-503:
---------------------------------------

Made a follow up patch for Linux:
17:47:08~/w/buildr>svn ci spec/packaging/archive_spec.rb -m "directory entries don't exist on linux, so this spec fails: we now check that there is no file entry instead"
Sending        spec/packaging/archive_spec.rb
Transmitting file data .
Committed revision 998379.

> Include with as includes directories as files when the directory has the same name as the path
> ----------------------------------------------------------------------------------------------
>
>                 Key: BUILDR-503
>                 URL: https://issues.apache.org/jira/browse/BUILDR-503
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.4.1
>            Reporter: Antoine Toulme
>            Assignee: Antoine Toulme
>            Priority: Critical
>             Fix For: 1.4.2
>
>
> Here is an example:
> write "some/custom/structure/myfile.txt", ""
> define "foo", :version => "1.0" do
>   package(:jar).include _("some/custom/structure"), :as => "var/my/structure"
> end
> Opening the jar shows this error:
> Archive:  foo-1.0.jar
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF    
>    creating: var/
>    creating: var/my/
>   inflating: var/my/structure        
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/.
> checkdir error:  var/my/structure exists but is not directory
>                  unable to process var/my/structure/myfile.txt.

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