You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2014/09/21 22:35:49 UTC

[02/50] [abbrv] git commit: [flex-utilities] [refs/heads/master] - - Fixed a problem occurring on Macs

- Fixed a problem occurring on Macs


Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/4b5f3a77
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/4b5f3a77
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/4b5f3a77

Branch: refs/heads/master
Commit: 4b5f3a77dd66baf694085f55f80dd673ae31b97e
Parents: 001ed0c
Author: Christofer Dutz <ch...@codecentric.de>
Authored: Fri Aug 15 18:59:12 2014 +0200
Committer: Christofer Dutz <ch...@codecentric.de>
Committed: Fri Aug 15 18:59:12 2014 +0200

----------------------------------------------------------------------
 .../utilities/converter/deployer/aether/AetherDeployer.java    | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/4b5f3a77/mavenizer/deployers/aether/src/main/java/org/apache/flex/utilities/converter/deployer/aether/AetherDeployer.java
----------------------------------------------------------------------
diff --git a/mavenizer/deployers/aether/src/main/java/org/apache/flex/utilities/converter/deployer/aether/AetherDeployer.java b/mavenizer/deployers/aether/src/main/java/org/apache/flex/utilities/converter/deployer/aether/AetherDeployer.java
index 40ac8c2..74434f9 100644
--- a/mavenizer/deployers/aether/src/main/java/org/apache/flex/utilities/converter/deployer/aether/AetherDeployer.java
+++ b/mavenizer/deployers/aether/src/main/java/org/apache/flex/utilities/converter/deployer/aether/AetherDeployer.java
@@ -186,6 +186,12 @@ public class AetherDeployer {
             final File artifactFiles[] = artifactDirectory.listFiles(new ArtifactFilter());
             for (final File artifactFile : artifactFiles) {
                 final String fileName = artifactFile.getName();
+
+                // Handle the case that some file might not start with the base-name.
+                if(!fileName.startsWith(artifactBaseName)) {
+                    continue;
+                }
+
                 final String classifier;
                 // This file has a classifier.
                 if (fileName.charAt(artifactBaseName.length()) == '-') {