untested new SwingJS-site.zip so that at least we all have the same one.
[jalview.git] / utils / checkstyle / import-control.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3 <!DOCTYPE import-control PUBLIC
4     "-//Puppy Crawl//DTD Import Control 1.1//EN"
5     "http://www.puppycrawl.com/dtds/import_control_1_1.dtd">
6     
7     <!--
8         see http://checkstyle.sourceforge.net/config_imports.html#ImportControl
9         allow/disallow rules propagate to sub-packages 
10         unless local-only="true" is specified
11         
12         note this can handle only one top-level package, so ImportControl is
13         suppressed for MCview and vamsas in checkstyle-suppress.xml
14         (all rules are suppressed for com/ext/org/uk)
15     -->
16    <import-control pkg="jalview">
17    
18                 <allow pkg="java"/>
19                 <allow pkg="jalview"/>
20                 <allow pkg="com.stevesoft.pat"/>
21                 
22                 <subpackage name="appletgui">
23                 <disallow pkg="javax.swing"/>
24                 <disallow pkg="jalview.gui"/>
25                 <disallow pkg="jalview.ws"/>
26                 <allow pkg="org.jmol"/>
27                 <allow pkg="javajs.awt" class="jalview.appletgui.AppletJmolBinding"/>
28             </subpackage>
29                 
30                 <subpackage name="bin">
31                 <allow pkg="groovy"/>
32                 <allow pkg="org.apache.log4j" class="jalview.bin.Cache"/>
33                 <allow pkg="javax.swing" class="jalview.bin.Jalview"/>
34                 <allow pkg="netscape.javascript" class="jalview.bin.JalviewLite"/>
35             </subpackage>
36                 
37                 <subpackage name="datamodel">
38                 <disallow pkg="jalview.gui"/>
39                 <allow pkg="fr.orsay.lri.varna"/>
40                         <subpackage name="xdb.embl">
41                         <allow pkg="org.exolab.castor"/>
42                     </subpackage>
43             </subpackage>
44                 
45                 <subpackage name="ext">
46                         <subpackage name="ensembl">
47                         <allow pkg="javax.ws"/>
48                         <allow pkg="org.json"/>
49                         </subpackage>
50                         <subpackage name="htsjdk">
51                         <allow pkg="htsjdk"/>
52                         </subpackage>
53                         <subpackage name="jmol">
54                         <allow pkg="MCview"/>
55                         <allow pkg="org.jmol"/>
56                         </subpackage>
57                         <subpackage name="paradise">
58                         <allow pkg="org.apache"/>
59                         <allow pkg="org.json"/>
60                         </subpackage>
61                         <subpackage name="rbvi">
62                         <allow pkg="ext.edu.ucsf"/>
63                         <allow pkg="javax.servlet"/>
64                         </subpackage>
65                         <subpackage name="so">
66                         <allow pkg="org.biojava"/>
67                         </subpackage>
68                         <subpackage name="varna">
69                         <allow pkg="fr.orsay"/>
70                         </subpackage>
71             </subpackage>
72                 
73                 <subpackage name="fts">
74                 <allow pkg="javax.swing"/>
75                 <allow pkg="javax.ws"/>
76                 <allow pkg="org.json"/>
77                 <allow pkg="com.sun.jersey"/>
78             </subpackage>
79                 
80                 <subpackage name="gui">
81                 <allow pkg="javax.swing"/>
82                 <allow pkg="javax.help"/>
83                 <allow pkg="javax.imageio"/>
84                 <allow pkg="ext.edu.ucsf"/>
85                 <allow pkg="net.miginfocom"/>
86                 <allow pkg="org.jibble"/>
87                 <allow pkg="org.jmol"/>
88                 <allow pkg="org.openscience"/>
89                 <allow pkg="org.exolab.castor" class="jalview.gui.Jalview2XML"/>
90                 <allow pkg="org.robsite" class="jalview.gui.BlogReader"/>
91                 <allow pkg="org.apache.log4j" class="jalview.gui.Console"/>
92                 <allow pkg="org.apache.log4j" class="jalview.gui.JalviewAppender"/>
93                 <allow pkg="org.biodas" class="jalview.gui.DasSourceBrowser"/>
94                 <allow pkg="compbio.metadata" class="jalview.gui.WsJobParameters"/>
95                 <allow pkg="fr.orsay.lri.varna" class="jalview.gui.AppVarna"/>
96                 <allow pkg="fr.orsay.lri.varna" class="jalview.gui.AppVarnaBinding"/>
97                 <allow pkg="uk.ac.vamsas" class="jalview.gui.VamsasApplication"/>
98             </subpackage>
99                 
100                 <subpackage name="jbgui">
101                 <allow pkg="javax.swing"/>
102                 <allow pkg="net.miginfocom"/>
103             </subpackage>
104
105                 <subpackage name="httpserver">
106                 <allow pkg="javax.servlet"/>
107                 <allow pkg="org.eclipse.jetty"/>
108             </subpackage>
109
110                 <subpackage name="io">
111                 <allow pkg="javax.swing"/>
112                 <allow pkg="org.jfree"/>
113                 <allow pkg="org.json"/>
114                 <allow pkg="org.jsoup"/>
115                 <allow pkg="uk.ac.ebi"/>
116                 <allow pkg="uk.ac.vamsas"/>
117                 <allow pkg="fr.orsay.lri.varna"/>
118                 <allow pkg="MCview"/>
119                 </subpackage>       
120                                 
121                 <subpackage name="javascript">
122                 <allow pkg="netscape.javascript"/>
123             </subpackage>
124
125                 <subpackage name="rest">
126                 <allow pkg="javax.servlet"/>
127                 </subpackage>
128
129                 <subpackage name="schemes">
130                         <allow pkg="org.exolab.castor" class="jalview.schemes.ColourSchemeLoader"/>
131                 </subpackage>
132
133                 <subpackage name="structure">
134                 <allow pkg="MCview"/>
135                 </subpackage>
136                 
137                 <subpackage name="urls">
138                         <allow pkg="javax.swing" class="jalview.urls.UrlLinkTableModel"/>
139                         <allow pkg="org.json"/>
140                 </subpackage>
141
142                 <subpackage name="util">
143                 <allow pkg="javax.swing"/>
144                 <allow pkg="javax.imageio"/>
145                 <allow pkg="org.jfree"/>
146                 <allow pkg="org.jibble"/>
147                 </subpackage>
148
149                 <subpackage name="ws">
150                 <allow pkg="javax.swing"/>
151                 <allow pkg="javax.xml"/>
152                 <allow pkg="ext.vamsas"/>
153                 <allow pkg="compbio"/>
154                 <allow pkg="MCview"/>
155                 <allow pkg="org.apache.http"/>
156                 <allow pkg="org.apache.james"/>
157                 <allow pkg="org.apache.axis"/>
158                 <allow pkg="org.biodas.jdas"/>
159                 <allow pkg="org.exolab.castor"/>
160                 <allow pkg="uk.ac.ebi"/>
161                 <allow pkg="vamsas.objects"/>
162                 </subpackage>
163
164    </import-control>