Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 1 | package aQute.bnd.maven; |
| 2 | |
| 3 | import java.util.*; |
| 4 | |
| 5 | import aQute.bnd.service.*; |
| 6 | import aQute.libg.reporter.*; |
| 7 | |
| 8 | public class MavenGroup implements BsnToMavenPath, Plugin { |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame^] | 9 | String groupId = ""; |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 10 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame^] | 11 | public String[] getGroupAndArtifact(String bsn) { |
| 12 | String[] result = new String[2]; |
| 13 | result[0] = groupId; |
| 14 | result[1] = bsn; |
| 15 | return result; |
| 16 | } |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 17 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame^] | 18 | public void setProperties(Map<String,String> map) { |
| 19 | if (map.containsKey("groupId")) { |
| 20 | groupId = map.get("groupId"); |
| 21 | } |
| 22 | } |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 23 | |
Stuart McCulloch | 4482c70 | 2012-06-15 13:27:53 +0000 | [diff] [blame^] | 24 | public void setReporter(Reporter processor) {} |
Stuart McCulloch | f317322 | 2012-06-07 21:57:32 +0000 | [diff] [blame] | 25 | |
| 26 | } |