Author: dkulp
Date: Mon Dec 8 09:38:03 2008
New Revision: 724421
URL: http://svn.apache.org/viewvc?rev=724421&view=rev
Log:
Fix build failures
Modified:
cxf/branches/2.1.x-fixes/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
cxf/branches/2.1.x-fixes/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java
Modified:
cxf/branches/2.1.x-fixes/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java?rev=724421&r1=724420&r2=724421&view=diff
==============================================================================
---
cxf/branches/2.1.x-fixes/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
(original)
+++
cxf/branches/2.1.x-fixes/common/common/src/main/java/org/apache/cxf/helpers/FileUtils.java
Mon Dec 8 09:38:03 2008
@@ -57,10 +57,11 @@
int x = (int)(Math.random() * 1000000);
s = System.getProperty("java.io.tmpdir");
File checkExists = new File(s);
- if(!checkExists.exists()) {
+ if (!checkExists.exists()) {
throw new RuntimeException("The directory "
+ checkExists.getAbsolutePath()
- + " does not exist, please set
java.io.tempdir to an existing directory");
+ + " does not exist, please set "
+ + "java.io.tempdir to an existing
directory");
}
File f = new File(s, "cxf-tmp-" + x);
while (!f.mkdir()) {
Modified:
cxf/branches/2.1.x-fixes/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.1.x-fixes/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java?rev=724421&r1=724420&r2=724421&view=diff
==============================================================================
---
cxf/branches/2.1.x-fixes/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java
(original)
+++
cxf/branches/2.1.x-fixes/common/common/src/test/java/org/apache/cxf/helpers/FileUtilsTest.java
Mon Dec 8 09:38:03 2008
@@ -1,7 +1,23 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
package org.apache.cxf.helpers;
-import java.io.File;
-
import org.junit.Assert;
import org.junit.Test;