Created
November 9, 2014 19:27
-
-
Save Tom9729/3d62433d9fd3be7620bf to your computer and use it in GitHub Desktop.
Replace application server JARs with links to JARs installed in the local Maven repo to simplify development.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
JBOSS_DIR=~/wkspace/teiid-8.10.0.Alpha1-SNAPSHOT | |
## Link Teiid jars from build into server. | |
for dest in $(find "$JBOSS_DIR/modules" -path '*/org/jboss/teiid/*' -name '*.*ar'); | |
do | |
file=$(basename $dest) | |
src=$(find ~/.m2/repository -name "$file" | head -1) | |
if [ "$src" = "" ]; then continue; fi | |
ln -svf "$src" "$dest" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment