Index: JavaSourceFactory.java =================================================================== RCS file: /home/cvspublic/ws-jaxme/src/js/org/apache/ws/jaxme/js/JavaSourceFactory.java,v retrieving revision 1.4 diff -u -r1.4 JavaSourceFactory.java --- JavaSourceFactory.java 4 Mar 2004 22:29:22 -0000 1.4 +++ JavaSourceFactory.java 7 Sep 2004 06:43:29 -0000 @@ -305,6 +305,9 @@ if (p != null && !p.exists()) { getLogger().fine(mName, "Creating directory " + p); p.mkdirs(); + if (isSettingReadOnly()) { + p.setReadOnly(); + } } if (isOverwriteForced() || !pFile.exists() || !isSameFile(pJs, pFile)) { @@ -312,6 +315,9 @@ Writer w = new BufferedWriter(new FileWriter(pFile), 4096); pJs.write(w); w.close(); + if (isSettingReadOnly()) { + pFile.setReadOnly(); + } } else { getLogger().fine(mName, "Uptodate: " + pFile); }