Project

General

Profile

« Previous | Next » 

Revision 8099

use shared metacatContextDir variable for calls to Harvester.loadProperties(metacatContextDir);

View differences:

MCTestCase.java
95 95
	protected static String anotheruser;
96 96
	protected static String anotherpassword;
97 97
	
98
	protected static String metacatContextDir;
99
	
98 100
	static {
99 101
		try {
100 102
			SortedProperties testProperties = 
101 103
				new SortedProperties("build/tests/test.properties");
102 104
			testProperties.load();
103
			String metacatContextDir = testProperties.getProperty("metacat.contextDir");
105
			metacatContextDir = testProperties.getProperty("metacat.contextDir");
104 106
			PropertyService.getInstance(metacatContextDir + "/WEB-INF");
105 107
//			PropertyService.getInstance();
106 108
		    String printDebugString = PropertyService.getProperty("test.printdebug");

Also available in: Unified diff