Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Webtools Releng
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Eclipse Projects
webtools
Releng
Webtools Releng
Commits
d7617c05
Commit
d7617c05
authored
15 years ago
by
david_williams
Browse files
Options
Downloads
Patches
Plain Diff
283792 read properties for versioning tests
parent
805fd5b3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/org.eclipse.wtp.releng.tests/build.properties
+2
-1
2 additions, 1 deletion
tests/org.eclipse.wtp.releng.tests/build.properties
tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/BuildTests.java
+25
-20
25 additions, 20 deletions
...ng.tests/src/org/eclipse/wtp/releng/tests/BuildTests.java
with
27 additions
and
21 deletions
tests/org.eclipse.wtp.releng.tests/build.properties
+
2
−
1
View file @
d7617c05
...
@@ -14,5 +14,6 @@ bin.includes = META-INF/,\
...
@@ -14,5 +14,6 @@ bin.includes = META-INF/,\
test.xml,
\
test.xml,
\
transformReportToHTML.xml,
\
transformReportToHTML.xml,
\
about.html,
\
about.html,
\
plugin.properties
plugin.properties,
\
relengTests.properties
source..
=
src/
source..
=
src/
This diff is collapsed.
Click to expand it.
tests/org.eclipse.wtp.releng.tests/src/org/eclipse/wtp/releng/tests/BuildTests.java
+
25
−
20
View file @
d7617c05
...
@@ -483,31 +483,36 @@ public class BuildTests extends TestCase {
...
@@ -483,31 +483,36 @@ public class BuildTests extends TestCase {
String
listToReferenceFileArg
=
LIST_TO_REFERENCE_FILE
;
String
listToReferenceFileArg
=
LIST_TO_REFERENCE_FILE
;
String
propertyFileName
=
System
.
getProperty
(
"relengTestsPropertiesFile"
,
"relengTests.properties"
);
String
propertyFileName
=
System
.
getProperty
(
"relengTestsPropertiesFile"
,
"relengTests.properties"
);
System
.
out
.
println
(
"relengTestsPropertiesFile: "
+
propertyFileName
);
Properties
testProperties
=
new
Properties
();
Properties
testProperties
=
new
Properties
();
File
propFile
=
new
File
(
propertyFileName
);
File
propFile
=
new
File
(
propertyFileName
);
String
fullPath
=
propFile
.
getAbsolutePath
();
String
fullPath
=
propFile
.
getAbsolutePath
();
System
.
out
.
println
(
fullPath
);
System
.
out
.
println
(
"fullPath: "
+
fullPath
);
InputStream
propertyStream
;
if
(
propFile
.
exists
())
{
try
{
InputStream
propertyStream
;
propertyStream
=
new
FileInputStream
(
propFile
);
try
{
testProperties
.
load
(
propertyStream
);
propertyStream
=
new
FileInputStream
(
propFile
);
qualifierArg
=
(
String
)
testProperties
.
getProperty
(
"qualifierArgValue"
,
""
);
testProperties
.
load
(
propertyStream
);
testToReferenceArg
=
(
String
)
testProperties
.
getProperty
(
"testToReferenceArgValue"
,
TEST_TO_REFERENCE
);
qualifierArg
=
(
String
)
testProperties
.
getProperty
(
"qualifierArgValue"
,
""
);
referenceIDArg
=
(
String
)
testProperties
.
getProperty
(
"referenceIDArgValue"
,
""
);
testToReferenceArg
=
(
String
)
testProperties
.
getProperty
(
"testToReferenceArgValue"
,
TEST_TO_REFERENCE
);
referenceURLArg
=
(
String
)
testProperties
.
getProperty
(
"referenceURLArgValue"
,
""
);
referenceIDArg
=
(
String
)
testProperties
.
getProperty
(
"referenceIDArgValue"
,
""
);
listToReferenceFileArg
=
(
String
)
testProperties
.
getProperty
(
"listToReferenceFileArgValue"
,
LIST_TO_REFERENCE_FILE
);
referenceURLArg
=
(
String
)
testProperties
.
getProperty
(
"referenceURLArgValue"
,
""
);
}
listToReferenceFileArg
=
(
String
)
testProperties
.
getProperty
(
"listToReferenceFileArgValue"
,
LIST_TO_REFERENCE_FILE
);
catch
(
FileNotFoundException
e
)
{
}
// just use defaults
catch
(
FileNotFoundException
e
)
{
System
.
out
.
println
(
e
.
getMessage
());
// just use defaults
System
.
out
.
println
(
e
.
getMessage
());
}
catch
(
IOException
e
)
{
// just use defaults
System
.
out
.
println
(
e
.
getMessage
());
}
}
}
catch
(
IOException
e
)
{
else
{
// just use defaults
System
.
out
.
println
(
"relengTestsPropertiesFile does not exist"
);
System
.
out
.
println
(
e
.
getMessage
());
}
}
String
[]
args
=
new
String
[]{
qualifierArg
,
testToReferenceArg
,
referenceIDArg
,
referenceURLArg
,
listToReferenceFileArg
};
String
[]
args
=
new
String
[]{
qualifierArg
,
testToReferenceArg
,
referenceIDArg
,
referenceURLArg
,
listToReferenceFileArg
};
return
args
;
return
args
;
...
...
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