Skip to content

Instantly share code, notes, and snippets.

@jhjaggars
Created December 14, 2011 21:52
Show Gist options
  • Save jhjaggars/1478729 to your computer and use it in GitHub Desktop.
Save jhjaggars/1478729 to your computer and use it in GitHub Desktop.
little script to help work on jdr
#!/bin/bash
SOS_HOME=${HOME}/workspace/sosreport
JDR_HOME=${HOME}/workspace/jboss-as/jdr
JDR_MODULES=$JBOSS_HOME/modules/org/jboss/as/jdr/main
JDR_RESOURCES=$JDR_HOME/jboss-as-sos/src/main/resources
TYPE=$1
cd $SOS_HOME && make eap6
rm -rf $JDR_RESOURCES/sos
cp -r $SOS_HOME/rpm-build/sdist/sos $JDR_RESOURCES
cd $JDR_HOME && \
mvn -q -ff clean install && \
find $JDR_HOME -name "*SNAPSHOT.jar" -exec cp {} $JDR_MODULES \; && \
cd $JBOSS_HOME && bin/${TYPE}.sh
@jhjaggars
Copy link
Author

plop it in some bin/ dir and run jdr-build.sh standalone or domain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment