Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dm-docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hammonds
dm-docs
Commits
3b613133
Commit
3b613133
authored
9 years ago
by
Barbara B. Frosik
Browse files
Options
Downloads
Patches
Plain Diff
config.properties a scommand line argument
parent
abb44c66
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/AccountSynchronizer/accountSynchronizer/src/gov/anl/aps/dm/sync/Synchronizer.java
+2
-2
2 additions, 2 deletions
...untSynchronizer/src/gov/anl/aps/dm/sync/Synchronizer.java
with
2 additions
and
2 deletions
tools/AccountSynchronizer/accountSynchronizer/src/gov/anl/aps/dm/sync/Synchronizer.java
+
2
−
2
View file @
3b613133
...
@@ -15,7 +15,7 @@ public class Synchronizer {
...
@@ -15,7 +15,7 @@ public class Synchronizer {
private
OracleConnection
oConnection
;
private
OracleConnection
oConnection
;
private
PsqlConnection
pConnection
;
private
PsqlConnection
pConnection
;
private
final
Properties
config
=
new
Properties
();
private
final
Properties
config
=
new
Properties
();
private
final
String
configFile
=
"config.properties"
;
//
private final String configFile = "config.properties";
private
final
Properties
tableRows
=
new
Properties
();
private
final
Properties
tableRows
=
new
Properties
();
private
final
String
oracleTable
=
"oracleTable.properties"
;
private
final
String
oracleTable
=
"oracleTable.properties"
;
private
FileHandler
fileHandler
;
private
FileHandler
fileHandler
;
...
@@ -24,7 +24,7 @@ public class Synchronizer {
...
@@ -24,7 +24,7 @@ public class Synchronizer {
public
static
void
main
(
String
[]
argv
)
{
public
static
void
main
(
String
[]
argv
)
{
Synchronizer
sync
=
new
Synchronizer
();
Synchronizer
sync
=
new
Synchronizer
();
sync
.
loadProperties
(
sync
.
configFile
);
sync
.
loadProperties
(
argv
[
0
]
);
sync
.
initLogger
();
sync
.
initLogger
();
sync
.
oConnection
=
new
OracleConnection
(
logger
);
sync
.
oConnection
=
new
OracleConnection
(
logger
);
sync
.
pConnection
=
new
PsqlConnection
(
logger
);
sync
.
pConnection
=
new
PsqlConnection
(
logger
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment