Skip to content

Commit

Permalink
Upgrade to V41
Browse files Browse the repository at this point in the history
  • Loading branch information
xbiansf committed Nov 15, 2017
1 parent 324f42d commit 4692632
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,29 @@ The build will generate a windows installer exe in the target directory when exe

To run the Data Loader GUI, run the command

java -jar target/dataloader-40.0-uber.jar
java -jar target/dataloader-xx.0-uber.jar

Use the command below to run the Data Loader GUI on Mac

java -XstartOnFirstThread -jar target/dataloader-40.0-uber.jar
java -XstartOnFirstThread -jar target/dataloader-xx.0-uber.jar

To run data loader for debug

java -XstartOnFirstThread -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 target/dataloader-40.0.0-uber.jar
java -XstartOnFirstThread -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 target/dataloader-xx.0.0-uber.jar

To run Data Loader from the command line, use the command:

java -cp target/dataloader-40.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner
java -cp target/dataloader-xx.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner

The command-line version runs with whatever properties you have in your config.properties file, but you can also pass paramters at runtime as arguments to the program.

For example, the following command sets the operation to insert regardless of what settings are contained in the config.properties file:

java -cp target/dataloader-40.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner process.operation=insert
java -cp target/dataloader-xx.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner process.operation=insert

The process-conf.xml file can be used to define properties for multiple processes. Look at src/main/nsis/samples/conf/process-conf.xml for examples on how to configure it. The way to run a process defined in process-conf.xml is to specify process name on command line like this:

java -cp target/dataloader-40.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner process.name=opportunityUpsertProcess
java -cp target/dataloader-xx.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner process.name=opportunityUpsertProcess


# Test Data Loader
Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.force</groupId>
<artifactId>dataloader</artifactId>
<packaging>jar</packaging>
<version>40.0.0</version>
<version>41.0.0</version>
<name>Data Loader</name>
<url>https://github.com/forcedotcom/dataloader</url>
<organization>
Expand All @@ -13,8 +13,8 @@
</organization>

<properties>
<force.wsc.version>40.0.0</force.wsc.version>
<force.partner.api.version>40.0.0</force.partner.api.version>
<force.wsc.version>41.0.0</force.wsc.version>
<force.partner.api.version>41.0.0</force.partner.api.version>
<build.year>2017</build.year>
<java.compile.version>1.8</java.compile.version>
<minJvmVersion>1.8.0</minJvmVersion>
Expand Down

0 comments on commit 4692632

Please sign in to comment.