Skip to content

Commit

Permalink
Merge pull request #132 from forcedotcom/xbian/upgrade_v40
Browse files Browse the repository at this point in the history
Upgrade to V40
  • Loading branch information
apoorvashenoy authored May 17, 2017
2 parents 6632e2b + c549285 commit 324f42d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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-39.0-uber.jar
java -jar target/dataloader-40.0-uber.jar

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

java -XstartOnFirstThread -jar target/dataloader-39.0-uber.jar
java -XstartOnFirstThread -jar target/dataloader-40.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-39.0.0-uber.jar
java -XstartOnFirstThread -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 target/dataloader-40.0.0-uber.jar

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

java -cp target/dataloader-39.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner
java -cp target/dataloader-40.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-39.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner process.operation=insert
java -cp target/dataloader-40.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-39.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner process.name=opportunityUpsertProcess
java -cp target/dataloader-40.0-uber.jar -Dsalesforce.config.dir=CONFIG_DIR com.salesforce.dataloader.process.ProcessRunner process.name=opportunityUpsertProcess


# Test Data Loader
Expand Down
8 changes: 4 additions & 4 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>39.0.0</version>
<version>40.0.0</version>
<name>Data Loader</name>
<url>https://github.com/forcedotcom/dataloader</url>
<organization>
Expand All @@ -13,9 +13,9 @@
</organization>

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

0 comments on commit 324f42d

Please sign in to comment.