unpack file from zip?

Comments

1 comment

  • Avatar
    juanjo

    It is not possible to unpack files from a bundled zip file without unpacking it. Would be possible to bundle the jar file in a separate <distributionFile>? You could include the process of unpacking the zip and moving the jar to a temporary location in the <preBuildActionList>:

    <project>
      ...
      <preBuildActionList>
         <unzip>
            <destinationDirectory>${system_temp_directory}/</destinationDirectory>
            <zipFile>${build_project_directory}/jars.zip</zipFile>
          </unzip>
      </preBuildActionList>
      ...
      <componentList>
        <component>
        <name>jar</name>
           <folderList>
               <folder>
                 <name>jar_file</name>
                 <destination>${system_temp_directory}</destination>
                 <distributionFileList>
                    <distributionFile origin="${system_temp_directory}/file.jar"/>
                 </distributionFileList>
              </folder>
           </folderList>
        </component>
      </componentList>
      ...
    </project>
    

Please sign in to leave a comment.