628
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : egg-extract.ant.xml
|
|
5 |
Part of : Helium
|
|
6 |
|
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
8 |
All rights reserved.
|
|
9 |
This component and the accompanying materials are made available
|
|
10 |
under the terms of the License "Eclipse Public License v1.0"
|
|
11 |
which accompanies this distribution, and is available
|
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
13 |
|
|
14 |
Initial Contributors:
|
|
15 |
Nokia Corporation - initial contribution.
|
|
16 |
|
|
17 |
Contributors:
|
|
18 |
|
|
19 |
Description:
|
|
20 |
|
|
21 |
============================================================================
|
|
22 |
-->
|
|
23 |
<project name="egg-extract" xmlns:ac="antlib:net.sf.antcontrib">
|
|
24 |
|
|
25 |
<target name="egg-extract">
|
|
26 |
<ac:if>
|
|
27 |
<matches string="${dep.to}" pattern="^.*\.egg$" casesensitive="false" singleline="true"/>
|
|
28 |
<then>
|
|
29 |
<ac:if>
|
|
30 |
<resourcecount when="eq" count="1">
|
|
31 |
<zipfileset src="${dep.to}" includes="EGG-INFO/not-zip-safe" />
|
|
32 |
</resourcecount>
|
|
33 |
<then>
|
|
34 |
<basename property="filename" file="${dep.to}" />
|
|
35 |
<dirname property="dir" file="${dep.to}" />
|
|
36 |
<mkdir dir="${dir}/../zipnotsafe/${filename}" />
|
|
37 |
<unzip src="${dep.to}" dest="${dir}/../zipnotsafe/${filename}" />
|
|
38 |
<delete file="${dep.to}" />
|
|
39 |
</then>
|
|
40 |
</ac:if>
|
|
41 |
</then>
|
|
42 |
</ac:if>
|
|
43 |
</target>
|
|
44 |
|
|
45 |
</project> |