You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
840 B

1 year ago
  1. #!/bin/sh
  2. cd ..
  3. cd ..
  4. #Backend/
  5. WORKDIR=`pwd`
  6. export WORKDIR
  7. CLASSPATH=.:$WORKDIR:$WORKDIR/application/lib/*:$WORKDIR/application/conf:$WORKDIR/application/lang
  8. export CLASSPATH
  9. MAINCLASS=@mainClass@
  10. export MAINCLASS
  11. if test -z "$pinpoint_appname";
  12. then
  13. java -cp $CLASSPATH @jvmArgs@ com.digiwin.app.common.launcher.DWXClassLauncher --xclass.mainclass=com.digiwin.gateway.DWApiGatewayApplication --xclass.password=@classPassword@
  14. else
  15. export AGENT_PATH=/agent_pinpoint/pinpoint-bootstrap.jar
  16. export AGENT_NAME=$pinpoint_appname
  17. export AGENT_ID=$pinpoint_id
  18. export AGENT_OPTS="-javaagent:$AGENT_PATH -Dpinpoint.agentId=$AGENT_ID -Dpinpoint.applicationName=$AGENT_NAME"
  19. java $AGENT_OPTS -cp $CLASSPATH @jvmArgs@ com.digiwin.app.common.launcher.DWXClassLauncher --xclass.mainclass=$MAINCLASS --xclass.password=@classPassword@
  20. fi