コード例 #1
0
 private static SeamVersion getSeamVersion(String seamGenBuildPath) {
   if (seamGenBuildPath == null || seamGenBuildPath.trim().length() <= 0) {
     return null;
   }
   String fullVersion = SeamUtil.getSeamVersionFromManifest(seamGenBuildPath);
   if (fullVersion == null) {
     return null;
   }
   String version = fullVersion.substring(0, 3);
   SeamVersion seamVersion = null;
   if (version != null) {
     seamVersion = SeamVersion.findByString(version);
   }
   return seamVersion;
 }
コード例 #2
0
 private String getTestPkgName(String projectName) {
   return "org.domain." //$NON-NLS-1$
       + SeamUtil.getSeamPackageName(projectName)
       + ".test"; //$NON-NLS-1$
 }