@Override public Builder getSubBuilder() throws Exception { return project.getBuilder(this); }
@Override public Builder getSubBuilder() throws Exception { return project.getBuilder(this); }
@Override public Builder getSubBuilder() throws Exception { return project.getBuilder(this); }
@Override public Builder getSubBuilder() throws Exception { return project.getBuilder(this); }
@Override public Builder getSubBuilder() throws Exception { return project.getBuilder(this); }
public Builder getSubBuilder() throws Exception { return project.getBuilder(this); }
public Builder getSubBuilder() throws Exception { return project.getBuilder(this); }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection< ? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection< ? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection< ? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
/** * Get a list of the sub builders. A bnd.bnd file can contain the -sub * option. This will generate multiple deliverables. This method returns the * builders for each sub file. If no -sub option is present, the list will * contain a builder for the bnd.bnd file. * * @return A list of builders. * @throws Exception */ public Collection<? extends Builder> getSubBuilders() throws Exception { return getBuilder(null).getSubBuilders(); }
public Map<String, Version> getVersions() throws Exception { if (versionMap.isEmpty()) { try (ProjectBuilder pb = getBuilder(null)) { for (Builder builder : pb.getSubBuilders()) { String v = builder.getVersion(); if (v == null) v = "0"; else { v = Analyzer.cleanupVersion(v); if (!Verifier.isVersion(v)) continue; // skip } Version version = new Version(v); versionMap.put(builder.getBsn(), version); } } } return new LinkedHashMap<>(versionMap); }
/** * Answer the container associated with a given bsn. * * @throws Exception */ public Container getDeliverable(String bsn, Map<String, String> attrs) throws Exception { try (ProjectBuilder pb = getBuilder(null)) { for (Builder b : pb.getSubBuilders()) { if (b.getBsn() .equals(bsn)) return new Container(this, getOutputFile(bsn, b.getVersion()), attrs); } } return null; }
public Map<String, Version> getVersions() throws Exception { if (versionMap.isEmpty()) { try (ProjectBuilder pb = getBuilder(null)) { for (Builder builder : pb.getSubBuilders()) { String v = builder.getVersion(); if (v == null) v = "0"; else { v = Analyzer.cleanupVersion(v); if (!Verifier.isVersion(v)) continue; // skip } Version version = new Version(v); versionMap.put(builder.getBsn(), version); } } } return new LinkedHashMap<>(versionMap); }
/** * Answer the container associated with a given bsn. * * @throws Exception */ public Container getDeliverable(String bsn, Map<String, String> attrs) throws Exception { try (ProjectBuilder pb = getBuilder(null)) { for (Builder b : pb.getSubBuilders()) { if (b.getBsn() .equals(bsn)) return new Container(this, getOutputFile(bsn, b.getVersion()), attrs); } } return null; }
/** * Do a baseline for this project * * @throws Exception */ public void baseline() throws Exception { try (ProjectBuilder pb = getBuilder(null)) { for (Builder b : pb.getSubBuilders()) { @SuppressWarnings("resource") Jar build = b.build(); getInfo(b); } getInfo(pb); } }
/** * Do a baseline for this project * * @throws Exception */ public void baseline() throws Exception { ProjectBuilder b = getBuilder(null); for (Builder pb : b.getSubBuilders()) { ProjectBuilder ppb = (ProjectBuilder) pb; Jar build = ppb.build(); getInfo(ppb); } getInfo(b); }
/** * Do a baseline for this project * * @throws Exception */ public void baseline() throws Exception { ProjectBuilder b = getBuilder(null); for (Builder pb : b.getSubBuilders()) { ProjectBuilder ppb = (ProjectBuilder) pb; Jar build = ppb.build(); getInfo(ppb); } getInfo(b); }
/** * Do a baseline for this project * * @throws Exception */ public void baseline() throws Exception { try (ProjectBuilder pb = getBuilder(null)) { for (Builder b : pb.getSubBuilders()) { @SuppressWarnings("resource") Jar build = b.build(); getInfo(b); } getInfo(pb); } }
/** * Returns containers for the deliverables of this project. The deliverables * is the project builder for this project if no -sub is specified. * Otherwise it contains all the sub bnd files. * * @return A collection of containers * @throws Exception */ public Collection<Container> getDeliverables() throws Exception { List<Container> result = new ArrayList<>(); try (ProjectBuilder pb = getBuilder(null)) { for (Builder builder : pb.getSubBuilders()) { Container c = new Container(this, builder.getBsn(), builder.getVersion(), Container.TYPE.PROJECT, getOutputFile(builder.getBsn(), builder.getVersion()), null, null, null); result.add(c); } return result; } }