forked from Prof-Calebe/Source-Code-Inspection
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
34 lines (29 loc) · 624 Bytes
/
build.sh
File metadata and controls
34 lines (29 loc) · 624 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
_PWD=`pwd`
CopyLibs=$_PWD/lib/org-netbeans-modules-java-j2seproject-copylibstask.jar
CLASSPATH=$CLASSPATH:$CopyLibs:
export CLASSPATH
echo "CLASSPATH:"$CLASSPATH
echo " "
echo "Compiling these projects:"
for i in * ; do
if [ -d "$i" ] && [ ! "$i" = "lib" ] && [ ! "$i" = "glassfish3" ]; then
cd "$i"
if [ -f "manifest.mf" ]; then
TARGET=jar
else
TARGET=dist
fi
TARGET=""
echo " "
echo "----- $i -----"
ant -Dlibs.CopyLibs.classpath="$CopyLibs" \
$TARGET
RET=$?
if [ ! "$RET" = "0" ]; then
exit $RET
fi
echo " "
cd ..
fi
done