Java Code Examples for org.apache.tools.ant.util.StringUtils#split()
The following examples show how to use
org.apache.tools.ant.util.StringUtils#split() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BundleInfoTask.java From knopflerfish.org with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Set default import set. * * @param packageList Comma-separated list of package names. */ public void setDefaultImports(String packageList) { importSet.clear(); if (null!=packageList) { packageList = packageList.trim(); if (0<packageList.length()) { @SuppressWarnings("unchecked") final Vector<String> v = StringUtils.split(packageList,','); for (final String pkg : v) { importSet.add(pkg.trim()); } } } }
Example 2
Source File: BundleInfoTask.java From knopflerfish.org with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Set the extra imports set. * * @param packageList Comma-separated list of package names. */ public void setExtraImports(String packageList) { extraImportSet.clear(); if (null!=packageList) { packageList = packageList.trim(); if (packageList.length()>0) { @SuppressWarnings("unchecked") final Vector<String> v = StringUtils.split(packageList,','); for (final String pkg : v) { extraImportSet.add(pkg.trim()); } } } }
Example 3
Source File: BundleInfoTask.java From knopflerfish.org with BSD 3-Clause "New" or "Revised" License | 5 votes |
/** * Set set of packages always imported. * * @param packageList Comma-separated list of package names. */ public void setStdImports(String packageList) { stdImports.clear(); stdImports.add("java."); @SuppressWarnings("unchecked") final Vector<String> v = StringUtils.split(packageList,','); for (final String imp : v) { stdImports.add(imp.trim()); } }