svnno****@sourc*****
svnno****@sourc*****
2008年 9月 24日 (水) 01:55:08 JST
Revision: 1949 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=jiemamy&view=rev&rev=1949 Author: shin1 Date: 2008-09-24 01:55:08 +0900 (Wed, 24 Sep 2008) Log Message: ----------- 実装クラス出力フォルダが存在しない場合にExceptionが発生していた。 Modified Paths: -------------- sandbox/org.jiemamy.core.eventcodegen/trunk/org.jiemamy.core.eventcodegen/src/main/java/org/jiemamy/core/eventcodegen/JiemamyModelDoclet.java -------------- next part -------------- Modified: sandbox/org.jiemamy.core.eventcodegen/trunk/org.jiemamy.core.eventcodegen/src/main/java/org/jiemamy/core/eventcodegen/JiemamyModelDoclet.java =================================================================== --- sandbox/org.jiemamy.core.eventcodegen/trunk/org.jiemamy.core.eventcodegen/src/main/java/org/jiemamy/core/eventcodegen/JiemamyModelDoclet.java 2008-09-23 16:45:28 UTC (rev 1948) +++ sandbox/org.jiemamy.core.eventcodegen/trunk/org.jiemamy.core.eventcodegen/src/main/java/org/jiemamy/core/eventcodegen/JiemamyModelDoclet.java 2008-09-23 16:55:08 UTC (rev 1949) @@ -32,10 +32,10 @@ public class JiemamyModelDoclet extends Doclet { public List<JiemamyModel> model; public Map<Class<?>, CollectionProperty> collectionProperties = new HashMap<Class<?>, CollectionProperty>(); - public static final String OUTPUTDIR_SPECS = "src/main/java/"; +// public static final String OUTPUTDIR_SPECS = "src/main/java/"; public static final String OUTPUTDIR_IMPLEMENTS = "src/main/java/"; // public static final String OUTPUTDIR_IMPLEMENTS = "../org.jiemamy.core/src/main/java/"; -// public static final String OUTPUTDIR_SPECS = "../org.jiemamy.spec.event/src/main/java/"; + public static final String OUTPUTDIR_SPECS = "../org.jiemamy.spec.event/src/main/java/"; public static LanguageVersion languageVersion() { return LanguageVersion.JAVA_1_5; @@ -162,8 +162,8 @@ } File dirForImpl = new File(OUTPUTDIR_IMPLEMENTS + packageName.replaceAll("\\.", "/")); - if (!dirForSpec.exists()) { - dirForSpec.mkdirs(); + if (!dirForImpl.exists()) { + dirForImpl.mkdirs(); } VelocityContext velocityContext = new VelocityContext(); velocityContext.put("package", packageName);