Skip to content

Commit d6512f2

Browse files
author
kevin.w.wall
committed
Update script to work with ESAPI 2.0_rc10 and later. Improve output.
1 parent a371d72 commit d6512f2

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

src/examples/scripts/setenv-zip.sh

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@
1313
# since the specific version of the library is delivered as part of the
1414
# ESAPI zip file. In this manner, we do not have to update this if these
1515
# versions change. For the record, at the time of this writing, these were
16-
# log4j-1.2.12.jar, commons-fileupload-1.2.jar, and servlet-api-2.4.jar.
16+
# log4j-1.2.16.jar, commons-fileupload-1.2.jar, and servlet-api-2.4.jar.
1717
esapi_classpath=".:\
1818
$(ls ../../../esapi*.jar):\
1919
$(./findjar.sh -start ../../../libs log4j-*.jar):\
2020
$(./findjar.sh -start ../../../libs commons-fileupload-*.jar):\
2121
$(./findjar.sh -start ../../../libs servlet-api-*.jar)"
2222

23-
esapi_resources="$(\cd ../../../configuration/.esapi >&- 2>&- && pwd)"
24-
esapi_resources_test="$(\cd ../../test/resources/.esapi >&- 2>&- && pwd)"
23+
esapi_resources="$(\cd ../../../configuration/esapi >&- 2>&- && pwd)"
24+
esapi_resources_test="$(\cd ../../../src/test/resources/esapi >&- 2>&- && pwd)"
2525

26-
log4j_properties="../../../configuration/log4j.xml"
26+
log4j_properties="../../../src/test/resources/log4j.xml"
2727

2828
if [[ ! -r "$esapi_resources"/ESAPI.properties ]]
29-
then echo 2>&1 "setenv-svn.sh: Can't read ESAPI.properties in $esapi_properties"
29+
then echo 2>&1 "setenv-svn.sh: Can't read ESAPI.properties in $esapi_resources"
3030
return 1 # Don't use 'exit' here or it will kill their current shell.
3131
fi
3232

3333
if [[ ! -r "$esapi_resources_test"/ESAPI.properties ]]
34-
then echo 2>&1 "setenv-svn.sh: Can't read ESAPI.properties in $esapi_properties_test"
34+
then echo 2>&1 "setenv-svn.sh: Can't read ESAPI.properties in $esapi_resources_test"
3535
return 1 # Don't use 'exit' here or it will kill their current shell.
3636
fi
3737

@@ -40,9 +40,11 @@ then echo 2>&1 "setenv-svn.sh: Can't read log4j.xml: $log4j_properties"
4040
return 1 # Don't use 'exit' here or it will kill their current shell.
4141
fi
4242

43-
## echo "esapi_resources=$esapi_resources"
44-
## echo "esapi_resources_test=$esapi_resources_test"
45-
## echo "log4j_properties=$log4j_properties"
46-
## echo "esapi_classpath=$esapi_classpath"
43+
echo ############################################################
44+
echo "esapi_resources=$esapi_resources"
45+
echo "esapi_resources_test=$esapi_resources_test"
46+
echo "log4j_properties=$log4j_properties"
47+
echo "esapi_classpath=$esapi_classpath"
48+
echo ############################################################
4749

4850
export esapi_classpath esapi_resources esapi_resources_test log4j_properties

0 commit comments

Comments
 (0)