+ protected Manifest readManifest(File file) throws IOException {
+ Manifest manifest = new Manifest();
+ FileInputStream in = new FileInputStream(file);
+ manifest.read(in);
+ in.close();
+ return manifest;
+ }
+
+ protected int snapshotIndex() {
+ return project.getModel().getVersion().lastIndexOf("-SNAPSHOT");
+ }
+
+ protected String versionMain(int sIndex) {
+ return project.getVersion().substring(0, sIndex);
+ }
+
+ protected File getBundleDirectory() {
+ return bundlesDirectory;
+ }
+
+ protected FileFilter bundleFileFilter() {
+ return new FileFilter() {
+ public boolean accept(File file) {
+ if (!file.isDirectory())
+ return false;
+
+ return manifestFileFromDir(file).exists();
+ }
+ };
+ }
+