MCPcopy Index your code
hub / github.com/benfry/processing4 / handleExports

Method handleExports

app/src/processing/app/Library.java:181–302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179
180
181 private void handleExports() {
182 /*
183 File exportSettings = new File(libraryFolder, "export.txt");
184 StringDict exportTable = exportSettings.exists() ?
185 Util.readSettings(exportSettings) : new StringDict();
186 */
187
188 exportList = new HashMap<>();
189
190 // get the list of files just in the library root
191 baseList = libraryFolder.list(libraryFolderFilter);
192
193 for (String variant : Platform.getSupportedVariants().keys()) {
194 File variantFolder = new File(libraryFolder, variant);
195 if (!variantFolder.exists()) {
196 // check to see if old naming is in use
197 String oldName = newToOld.get(variant, null);
198 if (oldName != null) {
199 variantFolder = new File(libraryFolder, variant);
200 if (variantFolder.exists()) {
201 Messages.log("Please update " + getName() + " for Processing 4. " +
202 variantFolder + " is the older naming scheme.");
203 }
204 }
205 }
206 if (variantFolder.exists()) {
207 String[] entries = listPlatformEntries(libraryFolder, variant, baseList);
208 if (entries != null) {
209 exportList.put(variant, entries);
210 }
211 }
212 }
213
214 /*
215 // not actually used in any libraries
216 String androidExportStr = exportTable.get("android");
217 if (androidExportStr != null) {
218 androidExportList = PApplet.splitTokens(androidExportStr, ", ");
219 } else {
220 androidExportList = baseList;
221 }
222 */
223
224 /*
225 // for each individual platform that this library supports, figure out what's around
226 for (int i = 1; i < platformNames.length; i++) {
227 String platformName = platformNames[i];
228 String platformName32 = platformName + "32";
229 String platformName64 = platformName + "64";
230 String platformNameArmv6hf = platformName + "-armv6hf";
231 String platformNameArm64 = platformName + "-arm64";
232
233 // First check for things like 'application.macosx=' or 'application.windows32' in the export.txt file.
234 // These will override anything in the platform-specific subfolders.
235 String platformAll = exportTable.get("application." + platformName);
236 String[] platformList = platformAll == null ? null : PApplet.splitTokens(platformAll, ", ");
237 String platform32 = exportTable.get("application." + platformName + "32");
238 String[] platformList32 = platform32 == null ? null : PApplet.splitTokens(platform32, ", ");

Callers 1

handleMethod · 0.95

Calls 10

getSupportedVariantsMethod · 0.95
logMethod · 0.95
listPlatformEntriesMethod · 0.95
getClassPathMethod · 0.95
getMethod · 0.65
listMethod · 0.45
keysMethod · 0.45
getNameMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected