You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ken Geis (JIRA)" <ji...@codehaus.org> on 2007/11/03 00:16:10 UTC

[jira] Created: (MWAR-128) war goal does not copy empty directories from webapp directory

war goal does not copy empty directories from webapp directory
--------------------------------------------------------------

                 Key: MWAR-128
                 URL: http://jira.codehaus.org/browse/MWAR-128
             Project: Maven 2.x War Plugin
          Issue Type: Bug
    Affects Versions: 2.0.2
            Reporter: Ken Geis


I have an empty directory src/main/webapp/WEB-INF/logs.  I expect it to be created in target when the war goal tells me "Copy webapp webResources to ..."  It does not get created.

-- 
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

        

[jira] Commented: (MWAR-128) war goal does not copy empty directories from webapp directory

Posted by "Sergey Zakusov (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=259853#action_259853 ] 

Sergey Zakusov commented on MWAR-128:
-------------------------------------

So, as a workaround I should include a temp file in every empty folder.. Hm.. Is there another workaround?

> war goal does not copy empty directories from webapp directory
> --------------------------------------------------------------
>
>                 Key: MWAR-128
>                 URL: http://jira.codehaus.org/browse/MWAR-128
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Ken Geis
>
> I have an empty directory src/main/webapp/WEB-INF/logs.  I expect it to be created in target when the war goal tells me "Copy webapp webResources to ..."  It does not get created.

-- 
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

        

[jira] Commented: (MWAR-128) war goal does not copy empty directories from webapp directory

Posted by "Michiel Meeuwissen (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=185409#action_185409 ] 

Michiel Meeuwissen commented on MWAR-128:
-----------------------------------------

As far as I can see this issue is caused by the fact that the code only uses DirectoryScanner#getIncludedFiles. It should also consider #getIncludedDirectories to solve this issue.

> war goal does not copy empty directories from webapp directory
> --------------------------------------------------------------
>
>                 Key: MWAR-128
>                 URL: http://jira.codehaus.org/browse/MWAR-128
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Ken Geis
>
> I have an empty directory src/main/webapp/WEB-INF/logs.  I expect it to be created in target when the war goal tells me "Copy webapp webResources to ..."  It does not get created.

-- 
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

        

[jira] Commented: (MWAR-128) war goal does not copy empty directories from webapp directory

Posted by "Ken Geis (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123973 ] 

Ken Geis commented on MWAR-128:
-------------------------------

That is obvious, Olivier.

> war goal does not copy empty directories from webapp directory
> --------------------------------------------------------------
>
>                 Key: MWAR-128
>                 URL: http://jira.codehaus.org/browse/MWAR-128
>             Project: Maven 2.x War Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Ken Geis
>
> I have an empty directory src/main/webapp/WEB-INF/logs.  I expect it to be created in target when the war goal tells me "Copy webapp webResources to ..."  It does not get created.

-- 
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

        

[jira] Commented: (MWAR-128) war goal does not copy empty directories from webapp directory

Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MWAR-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_123961 ] 

Olivier Lamy commented on MWAR-128:
-----------------------------------

You cann add an empty file called safeToDelete.tmp in your directory src/main/webapp/WEB-INF/logs/ .

> war goal does not copy empty directories from webapp directory
> --------------------------------------------------------------
>
>                 Key: MWAR-128
>                 URL: http://jira.codehaus.org/browse/MWAR-128
>             Project: Maven 2.x War Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Ken Geis
>
> I have an empty directory src/main/webapp/WEB-INF/logs.  I expect it to be created in target when the war goal tells me "Copy webapp webResources to ..."  It does not get created.

-- 
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

        

[jira] (MWAR-128) war goal does not copy empty directories from webapp directory

Posted by "Muneer Syed (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MWAR-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315078#comment-315078 ] 

Muneer Syed commented on MWAR-128:
----------------------------------

Here is solution or workaround for this

Create a dummy file empty.tmp in the directory which you want to include e.g. src/main/webapp/myemptydir/empty.tmp
And use packagingExcludes that file, in the war the dummy file will be skipped but empty directory will be present

<plugin>
	<artifactId>maven-war-plugin</artifactId>
	<version>${maven.war.plugin.version}</version>
	<configuration>
		<packagingExcludes>**/empty.tmp</packagingExcludes>
	</configuration>
</plugin>
                
> war goal does not copy empty directories from webapp directory
> --------------------------------------------------------------
>
>                 Key: MWAR-128
>                 URL: https://jira.codehaus.org/browse/MWAR-128
>             Project: Maven 2.x WAR Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0.2
>            Reporter: Ken Geis
>
> I have an empty directory src/main/webapp/WEB-INF/logs.  I expect it to be created in target when the war goal tells me "Copy webapp webResources to ..."  It does not get created.

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