https://issues.apache.org/bugzilla/show_bug.cgi?id=56591

            Bug ID: 56591
           Summary: includes in jar task is not working as expected
           Product: Ant
           Version: 1.7.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
          Assignee: [email protected]
          Reporter: [email protected]

I am trying to build the JAR(s). My base directory is
${deploy.root}/wwwroot/WEB-INF/classes, now inside this I have package
structure like com.mycompname.mod.x, com.mycompname.mod.y....
Source code for generating jar files is:

<jar destfile="${deploy.root}/wwwroot/WEB-INF/lib/${module.name}.jar" 
            basedir="${deploy.root}/wwwroot/WEB-INF/classes"
            includes="com/<>/mod/${module.name}"
            update="true"></jar>

I am assuming at run time it will create a jar with name x.jar in lib directory
containing only class that are in
com/<>/mod/x package.

It's not working that way. Sometime it is creating X.jar containing only
manifest file. This is console output:

makeCompiledModuleClassesToJarAndCopyToWebRoot:

   [delete] Deleting: D:\<>\<>\<>\trunk\deploy\<>\wwwroot\WEB-INF\lib\X.jar
      [jar] Building MANIFEST-only jar:
D:\<>\<>\<>\trunk\deploy\<>\wwwroot\WEB-INF\lib\X.jar



Please help.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to