Hi,
I'm using Tuscany 1.3.2 October 2008 Release.
When a webapp is deployed, it creates an empty directory named 'target'.
I have seen another post regarding this issue and Luciano Resende replied
that he'd start a discussion in the dev list about the clean up.
In my Tuscany source, I've commented the following part in constructor of
org.apache.tuscany.sca.contribution.service.impl.ContributionRepositoryImpl.
This prevents the directory from being created.
----------------------------------------------------------------------------------------------------------------------------------------
try {
AccessController.doPrivileged(new
PrivilegedExceptionAction<Object>() {
public Object run() throws IOException {
FileHelper.forceMkdir(rootFile);
return null;
}
});
} catch (PrivilegedActionException e) {
error("PrivilegedActionException", rootFile,
(IOException)e.getException());
throw (IOException)e.getException();
}
Allow privileged access to test file. Requires FilePermissions in
security policy file.
Boolean notDirectory = AccessController.doPrivileged(new
PrivilegedAction<Boolean>() {
public Boolean run() {
return (!rootFile.exists() || !rootFile.isDirectory() ||
!rootFile.canRead());
}
});
if (notDirectory) {
error("RootNotDirectory", rootFile, repository);
throw new IOException("The root is not a directory: " +
repository);
}
---------------------------------------------------------------------------------------------------------------------------------------
Would it cause any problems else where?
thnx
-Prateek Temkar