Add Apache Commons Compress to ADT (required by sdklib)
This commit is contained in:
1
tools/eclipse/plugins/.gitignore
vendored
1
tools/eclipse/plugins/.gitignore
vendored
@@ -11,6 +11,7 @@ com.android.ide.eclipse.adt/ninepatch.jar
|
||||
com.android.ide.eclipse.adt/sdklib.jar
|
||||
com.android.ide.eclipse.adt/sdkstats.jar
|
||||
com.android.ide.eclipse.adt/sdkuilib.jar
|
||||
com.android.ide.eclipse.adt/commons-compress-1.0.jar
|
||||
com.android.ide.eclipse.ddms/icons/add.png
|
||||
com.android.ide.eclipse.ddms/icons/backward.png
|
||||
com.android.ide.eclipse.ddms/icons/clear.png
|
||||
|
||||
@@ -12,5 +12,6 @@
|
||||
<classpathentry kind="lib" path="ninepatch.jar"/>
|
||||
<classpathentry kind="lib" path="sdklib.jar" sourcepath="/SdkLib"/>
|
||||
<classpathentry kind="lib" path="sdkuilib.jar" sourcepath="/SdkUiLib"/>
|
||||
<classpathentry kind="lib" path="commons-compress-1.0.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
||||
@@ -12,7 +12,8 @@ Bundle-ClassPath: .,
|
||||
ninepatch.jar,
|
||||
layoutlib_utils.jar,
|
||||
sdklib.jar,
|
||||
sdkuilib.jar
|
||||
sdkuilib.jar,
|
||||
commons-compress-1.0.jar
|
||||
Bundle-Activator: com.android.ide.eclipse.adt.AdtPlugin
|
||||
Bundle-Vendor: The Android Open Source Project
|
||||
Require-Bundle: com.android.ide.eclipse.ddms,
|
||||
|
||||
@@ -12,6 +12,7 @@ bin.includes = plugin.xml,\
|
||||
layoutlib_utils.jar,\
|
||||
ninepatch.jar,\
|
||||
sdklib.jar,\
|
||||
sdkuilib.jar
|
||||
sdkuilib.jar,\
|
||||
commons-compress-1.0.jar
|
||||
source.. = src/
|
||||
output.. = bin/
|
||||
|
||||
@@ -27,12 +27,14 @@ if [ "$HOST" == "Linux" ]; then
|
||||
ln -svf $BACK/out/host/linux-x86/framework/$LIB.jar "$DEST/"
|
||||
done
|
||||
ln -svf $BACK/out/host/linux-x86/framework/kxml2-2.3.0.jar "$DEST/"
|
||||
ln -svf $BACK/out/host/linux-x86/framework/commons-compress-1.0.jar "$DEST/"
|
||||
|
||||
elif [ "$HOST" == "Darwin" ]; then
|
||||
for LIB in $LIBS; do
|
||||
ln -svf $BACK/out/host/darwin-x86/framework/$LIB.jar "$DEST/"
|
||||
done
|
||||
ln -svf $BACK/out/host/darwin-x86/framework/kxml2-2.3.0.jar "$DEST/"
|
||||
ln -svf $BACK/out/host/darwin-x86/framework/commons-compress-1.0.jar "$DEST/"
|
||||
|
||||
elif [ "${HOST:0:6}" == "CYGWIN" ]; then
|
||||
for LIB in $LIBS; do
|
||||
@@ -43,6 +45,10 @@ elif [ "${HOST:0:6}" == "CYGWIN" ]; then
|
||||
cp -v "prebuilt/common/kxml2/kxml2-2.3.0.jar" "$DEST/"
|
||||
fi
|
||||
|
||||
if [ ! -f "$DEST/commons-compress-1.0.jar" ]; then
|
||||
cp -v "prebuilt/common/commons-compress/commons-compress-1.0.jar" "$DEST/"
|
||||
fi
|
||||
|
||||
chmod -v a+rx "$DEST"/*.jar
|
||||
else
|
||||
echo "Unsupported platform ($HOST). Nothing done."
|
||||
|
||||
Reference in New Issue
Block a user