-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Evaluate Package Attributes from source
- Loading branch information
Showing
4 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
tycho-bndlib/src/main/java/org/eclipse/tycho/bndlib/JdtProjectBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package org.eclipse.tycho.bndlib; | ||
|
||
import aQute.bnd.build.Project; | ||
import aQute.bnd.build.ProjectBuilder; | ||
|
||
public class JdtProjectBuilder extends ProjectBuilder { | ||
|
||
private boolean initpackages; | ||
|
||
public JdtProjectBuilder(Project project) { | ||
super(project); | ||
addBasicPlugin(new SourceCodeAnalyzerPlugin()); | ||
} | ||
|
||
@Override | ||
public void analyze() throws Exception { | ||
// TODO Auto-generated method stub | ||
super.analyze(); | ||
} | ||
|
||
@Override | ||
public String _packageattribute(String[] args) { | ||
SourceCodeAnalyzerPlugin analyzerPlugin = getPlugin(SourceCodeAnalyzerPlugin.class); | ||
try { | ||
analyzerPlugin.analyzeJar(this); | ||
} catch (Exception e) { | ||
} | ||
return super._packageattribute(args); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters