You are viewing a plain text version of this content. The canonical link for it is here.
Posted to npanday-commits@incubator.apache.org by "Luca Di Stefano (JIRA)" <ji...@apache.org> on 2010/11/03 13:27:28 UTC
[jira] Created: (NPANDAY-345) avoid use of backslash in pom.xml
avoid use of backslash in pom.xml
---------------------------------
Key: NPANDAY-345
URL: https://issues.apache.org/jira/browse/NPANDAY-345
Project: NPanday
Issue Type: Bug
Components: Visual Studio Add-in
Affects Versions: 1.2.1
Environment: linux
Reporter: Luca Di Stefano
if backslash is used in pom like here below
<includeSource>Form1.cs</includeSource>
<includeSource>Form1.Designer.cs</includeSource>
<includeSource>Program.cs</includeSource>
<includeSource>Properties\AssemblyInfo.cs</includeSource>
<includeSource>Properties\Resources.Designer.cs</includeSource>
it will work only on windows
using the slash will be compatible with all platforms
in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Issue Comment Edited: (NPANDAY-345) avoid use of backslash
in pom.xml
Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932348#action_12932348 ]
Brett Porter edited comment on NPANDAY-345 at 11/16/10 12:46 AM:
-----------------------------------------------------------------
I think this would be best patched in the VS addin that generates the path instead of working around it in the compile plugin, though it would be good to apply both
was (Author: brettporter):
I think this would be best patched in the VS addin that generates the path instead of working around it in the compile plugin
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] [Closed] (NPANDAY-345) avoid use of backslash in pom.xml
Posted by "Brett Porter (Closed) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed NPANDAY-345.
--------------------------------
Resolution: Fixed
Fix Version/s: (was: Backlog)
1.4.1-incubating
Assignee: Adelita L. Padilla
was fixed in r1127458
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Assignee: Adelita L. Padilla
> Fix For: 1.4.1-incubating
>
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (NPANDAY-345) avoid use of backslash in pom.xml
Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12933677#action_12933677 ]
Brett Porter commented on NPANDAY-345:
--------------------------------------
I completely agree :)
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NPANDAY-345) avoid use of backslash in pom.xml
Posted by "Luca Di Stefano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927883#action_12927883 ]
Luca Di Stefano commented on NPANDAY-345:
-----------------------------------------
a simple workaround
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (NPANDAY-345) avoid use of backslash in pom.xml
Posted by "Luca Di Stefano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luca Di Stefano updated NPANDAY-345:
------------------------------------
Attachment: maven-compile-plugin_backslashfix-1.patch
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NPANDAY-345) avoid use of backslash in pom.xml
Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932348#action_12932348 ]
Brett Porter commented on NPANDAY-345:
--------------------------------------
I think this would be best patched in the VS addin that generates the path instead of working around it in the compile plugin
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (NPANDAY-345) avoid use of backslash in pom.xml
Posted by "Luca Di Stefano (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12932941#action_12932941 ]
Luca Di Stefano commented on NPANDAY-345:
-----------------------------------------
I prefer the solution on the addin than the workaround.
If the add in will use / instead of \ will solve the issue.
A related issue to this one is that in several npanday plugins there is the assumption that file separator is fix \ . In other places will be used the constant File.separator that makes the things even more complex.
i.e. in the class DefaultCompiler, for to split the path tokens, uses the following code:
String[] sourceTokens = includeSource.split(File.separator+File.separator);
this will never work on both unix and windows fixing this issue.
I think, for the whole npanday project, paths must be normalized defining a fix path separator and where possible using the class File instead String.
This will make projects written on visualstudio portable to other platforms.
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (NPANDAY-345) avoid use of backslash in pom.xml
Posted by "Brett Porter (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/NPANDAY-345?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter updated NPANDAY-345:
---------------------------------
Fix Version/s: Backlog
added to backlog for revision of patch
> avoid use of backslash in pom.xml
> ---------------------------------
>
> Key: NPANDAY-345
> URL: https://issues.apache.org/jira/browse/NPANDAY-345
> Project: NPanday
> Issue Type: Bug
> Components: Visual Studio Add-in
> Affects Versions: 1.2.1
> Environment: linux
> Reporter: Luca Di Stefano
> Fix For: Backlog
>
> Attachments: maven-compile-plugin_backslashfix-1.patch
>
>
> if backslash is used in pom like here below
> <includeSource>Form1.cs</includeSource>
> <includeSource>Form1.Designer.cs</includeSource>
> <includeSource>Program.cs</includeSource>
> <includeSource>Properties\AssemblyInfo.cs</includeSource>
> <includeSource>Properties\Resources.Designer.cs</includeSource>
> it will work only on windows
> using the slash will be compatible with all platforms
> in this case the last 2 sources will be not compiled
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.