+source.. = src/,\
+ ext/test/
additional.bundles = org.junit
import org.argeo.osgi.boot.OsgiBoot;
/** Tests which do not require a runtime. */
+@SuppressWarnings("rawtypes")
public class OsgiBootNoRuntimeTest extends TestCase {
public final static String BUNDLES = "src/test/bundles/some;in=*;ex=excluded,"
+ "src/test/bundles/others;in=**/org.argeo.*";
import org.osgi.framework.BundleContext;
/** Starts an Equinox runtime and provision it with OSGi boot. */
+@SuppressWarnings({ "unchecked", "rawtypes", "deprecation", "restriction" })
public class OsgiBootRuntimeTest extends TestCase {
protected OsgiBoot osgiBoot = null;
private boolean osgiRuntimeAlreadyRunning = false;
* expected that it is. The root of the repository is computed based on the file
* name of the URL and of the content of the index.
*/
+@SuppressWarnings({ "rawtypes", "unchecked" })
public class DistributionBundle {
private final static String INDEX_FILE_NAME = "modularDistribution.csv";
import org.osgi.framework.BundleContext;
/** Command line interface. */
+@SuppressWarnings({ "rawtypes", "unchecked", "restriction" })
public class Launcher {
public static void main(String[] args) {
* The approach is to generate list of URLs based on various methods, configured
* via system properties.
*/
+@SuppressWarnings({ "rawtypes", "unchecked", "deprecation" })
public class OsgiBoot {
public final static String SYMBOLIC_NAME_OSGI_BOOT = "org.argeo.osgi.boot";
public final static String SYMBOLIC_NAME_EQUINOX = "org.eclipse.osgi";
import org.osgi.framework.Bundle;\r
\r
/** Utilities, mostly related to logging. */\r
+@SuppressWarnings({ "rawtypes", "unchecked" })\r
public class OsgiBootUtils {\r
/** ISO8601 (as per log4j) and difference to UTC */\r
private static DateFormat dateFormat = new SimpleDateFormat(\r
StringTokenizer tSt = new StringTokenizer(currentVersion, ".");\r
while (tSt.hasMoreTokens())\r
tToks.add(tSt.nextToken());\r
- \r
+\r
int comp = 0;\r
comp: for (int i = 0; i < cToks.size(); i++) {\r
if (tToks.size() <= i) {\r
comp = 1;\r
break comp;\r
}\r
- \r
+\r
String c = (String) cToks.get(i);\r
String t = (String) tToks.get(i);\r
- \r
+\r
try {\r
int cInt = Integer.parseInt(c);\r
int tInt = Integer.parseInt(t);\r
}\r
}\r
}\r
- \r
+\r
if (comp == 0 && tToks.size() > cToks.size()) {\r
// equals until then, current shorter\r
comp = -1;\r
}\r
- \r
+\r
return comp;\r
}\r
\r
* @author Rob Harrop\r
* @since 1.1.3\r
*/\r
+@SuppressWarnings({ "rawtypes", "unchecked" })\r
public abstract class CollectionUtils {\r
\r
/**\r
* @since 19.03.2004\r
* @see org.apache.commons.lang.ObjectUtils\r
*/\r
+@SuppressWarnings({ "rawtypes", "unchecked" })\r
public abstract class ObjectUtils {\r
\r
private static final int INITIAL_HASH = 7;\r
* @since 16 April 2001\r
* @see org.apache.commons.lang.StringUtils\r
*/\r
+@SuppressWarnings({ "rawtypes", "unchecked" })\r
public abstract class StringUtils {\r
\r
private static final String FOLDER_SEPARATOR = "/";\r
* @see #PLACEHOLDER_PREFIX\r
* @see #PLACEHOLDER_SUFFIX\r
*/\r
+ @SuppressWarnings("unused")\r
public static String resolvePlaceholders(String text) {\r
StringBuffer buf = new StringBuffer(text);\r
\r