Changeset 43 for trunk/org.etsi.common/src/org/etsi
- Timestamp:
- 12/07/11 00:34:32 (13 years ago)
- Location:
- trunk/org.etsi.common/src/org/etsi/common
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.etsi.common/src/org/etsi/common/MiscTools.java
r29 r43 11 11 import java.io.Writer; 12 12 import java.text.DecimalFormat; 13 import java.util.regex.Matcher; 14 import java.util.regex.Pattern; 13 15 14 16 import org.etsi.common.exceptions.TerminationException; … … 170 172 } 171 173 172 174 //TODO: cloned from NamingConventionsChecker => needs to be unified and reused 175 public static boolean regExpMatch(String regExp, String subject) { 176 boolean matches = false; 177 Pattern pattern = Pattern.compile(regExp); 178 Matcher matcher = pattern.matcher(subject); 179 // System.out.println(regExp + " : " + subject); 180 if (matcher.matches()) { 181 matches = true; 182 } 183 return matches; 184 } 173 185 } -
trunk/org.etsi.common/src/org/etsi/common/configuration/ConfigurationProfile.java
r7 r43 8 8 protected String profileVersion; 9 9 protected String resourceExtensionsRegExp = "ttcn|ttcn3|3mp"; 10 protected String ignoredResourceRegExp = ".*IGNORED.*"; 10 11 protected String projectExtension = "t3p"; 11 12 protected boolean settingRecursiveProcessing = true; … … 91 92 } 92 93 94 public void setIgnoredResourceRegExt(String ignoredResourceRegExp) { 95 this.ignoredResourceRegExp = ignoredResourceRegExp; 96 } 97 98 public String getIgnoredResourceRegExp() { 99 return ignoredResourceRegExp; 100 } 101 93 102 }
Note: See TracChangeset
for help on using the changeset viewer.