private String getOption()

in src/main/java/org/apache/struts/annotations/taglib/apt/TagAnnotationProcessor.java [344:359]


    private String getOption(String name) {
        // there is a bug in the 1.5 apt implementation:
        // http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6258929
        // this is a hack-around
        if (processingEnv.getOptions().containsKey(name)) {
            return processingEnv.getOptions().get(name);
        }
        for (Map.Entry<String, String> entry : processingEnv.getOptions()
                .entrySet()) {
            String key = entry.getKey();
            String[] splitted = key.split("=");
            if (splitted[0].equals("-A" + name))
                return splitted[1];
        }
        return null;
    }