Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 2.04 KB

HowToBuildInEnglish.md

File metadata and controls

54 lines (37 loc) · 2.04 KB

Agent Packaging

Environment Dependency

1.1 jdk8

Configure environment variables JAVA_8_HOME. Example (Mac):

JAVA_8_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_181.jdk/Contents/Home
CLASSPATH=.:$JAVA_8_HOME/lib/dt.jar:$JAVA_8_HOME/lib/tools.jar
PATH=$JAVA_8_HOME/bin:$PATH:
export JAVA_8_HOME

1.2 jdk9

Configure environment variables JAVA_9_HOME. Example (Mac):

JAVA_9_HOME=/Library/Java/JavaVirtualMachines/jdk-9.0.4.jdk/Contents/Home
CLASSPATH=.:$JAVA_9_HOME/lib/dt.jar:$JAVA_9_HOME/lib/tools.jar
PATH=$JAVA_9_HOME/bin:$PATH:
export JAVA_9_HOME

JAVA_HOME must be configured. If you have JDK 1.6 then configure it to JDK 1.6, if not, you can use JDK8 instead.

1.3 takin depenencies

Before you build LinkAgent package ,you must build takin jar depenencies first.

  1. Enter takin project, Execute script mvn clean install -DskipTests

Shell Packaging

  1. Enter project bin directory ,Excute scriptrelease.sh
  2. Enter project deploy directory ,Get the packaged file simulator-agent.tar.gz

Manual Packaging

  1. Enter project simulator-agent directory bin,Excute scriptagent-packages.sh
  2. Enter project simulator-agentdirectorybin,Excute scriptagent-packages.sh
  3. Enter project instrument-simulatordirectorybin,Excute scriptsimulator-packages.sh
  4. Enter project instrument-modulesdirectorybin,Excute scriptpackages.sh
  5. Copy project instrument-modulesdirectorytarget 's modules and bootstrap to project instrument-simulatordirectorytarget 's simulator
  6. Copy project instrument-modulesdirectorytarget 's biz-classloader-jars/ to project instrument-simulatordirectorytarget'ssimulator'sbiz-classloader-jars
  7. Copy project instrument-modulesdirectorytarget 's bootstrap/ to projectinstrument-simulatordirectorytarget'ssimulatordirectorybootstrap
  8. Copy project instrument-simulatordirectorytarget 's simulator to project simulator-agent 's target/simulator-agent/agent

If copy target directory doesn't exist, create a new one.