| 339 | } |
| 340 | |
| 341 | QString Library::storageSuffix(const RuntimeContext & runtimeContext) const |
| 342 | { |
| 343 | // non-native? use only the gradle specifier |
| 344 | if (!isNative()) |
| 345 | { |
| 346 | return m_name.toPath(m_filename); |
| 347 | } |
| 348 | |
| 349 | // otherwise native, override classifiers. Mojang HACK! |
| 350 | GradleSpecifier nativeSpec = m_name; |
| 351 | QString nativeClassifier = getCompatibleNative(runtimeContext); |
| 352 | if (!nativeClassifier.isNull()) |
| 353 | { |
| 354 | nativeSpec.setClassifier(nativeClassifier); |
| 355 | } |
| 356 | else |
| 357 | { |
| 358 | nativeSpec.setClassifier("INVALID"); |
| 359 | } |
| 360 | return nativeSpec.toPath(m_filename); |
| 361 | } |
nothing calls this directly
no test coverage detected