Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Maven] Adding resource -> encoding problem
[Maven] Adding resource -> encoding problem [message #1007168] Mon, 04 February 2013 16:36 Go to next message
Leonce Lee is currently offline Leonce Lee
Messages: 2
Registered: February 2013
Junior Member
Hi there,

okay, i dont know in which forum i should have created this topic. I chose this forum because it's a xtext project.

I tryed to add a rescource folder which contains the .xtext file. I failed to build this plugin because the .xtext was not in the classpath. So i looked in the debug file:

[DEBUG] Added resource to classpath: file:/C:/Dokumente%20und%20Einstellungen/Admin/Desktop/eclipse/workspace/project.xtext/target/xtext//
[DEBUG] Added dependency to classpath: file:/C:/Dokumente und Einstellungen/Admin/.m2/repository/p2/osgi/bundle/ch.qos.logback.core/0.9.27.v20110224-1110/ch.qos.logback.core-0.9.27.v20110224-1110.jar
[DEBUG] Added dependency to classpath: file:/C:/Dokumente und Einstellungen/Admin/.m2/repository/p2/osgi/bundle/org.eclipse.net4j.jms.api/3.0.1.v20110818-0811/org.eclipse.net4j.jms.api-3.0.1.v20110818-0811.jar
[DEBUG] Added dependency to classpath: file:/C:/Dokumente und Einstellungen/Admin/.m2/repository/p2/osgi/bundle/javax.mail.glassfish/1.4.1.v201108011116/javax.mail.glassfish-1.4.1.v201108011116.jar


Here you can see the encoding problem:
"Dokumente%20und%20Einstellungen"

Do you know how i can fix it?

Thanks
Re: [Maven] Adding resource -> encoding problem [message #1007186 is a reply to message #1007168] Mon, 04 February 2013 21:15 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26039
Registered: July 2009
Senior Member
The forum for Xtext is eclipse.modeling.tmf. I have no idea what a
debug file is so maybe this is purely a Maven problem. I also don't
know what you mean by "adding a resource folder." You'll likely need to
provide a little more detail if you want help. You might also want to
run a spell checker and capitalize your "I"s...


On 04/02/2013 8:49 PM, Leonce Lee wrote:
> Hi there,
>
> okay, i dont know in which forum i should have created this topic. I
> chose this forum because it's a xtext project.
>
> I tryed to add a rescource folder which contains the .xtext file. I
> failed to build this plugin because the .xtext was not in the
> classpath. So i looked in the debug file:
>
>
> [DEBUG] Added resource to classpath:
> file:/C:/Dokumente%20und%20Einstellungen/Admin/Desktop/eclipse/workspace/project.xtext/target/xtext//
> [DEBUG] Added dependency to classpath: file:/C:/Dokumente und
> Einstellungen/Admin/.m2/repository/p2/osgi/bundle/ch.qos.logback.core/0.9.27.v20110224-1110/ch.qos.logback.core-0.9.27.v20110224-1110.jar
> [DEBUG] Added dependency to classpath: file:/C:/Dokumente und
> Einstellungen/Admin/.m2/repository/p2/osgi/bundle/org.eclipse.net4j.jms.api/3.0.1.v20110818-0811/org.eclipse.net4j.jms.api-3.0.1.v20110818-0811.jar
> [DEBUG] Added dependency to classpath: file:/C:/Dokumente und
> Einstellungen/Admin/.m2/repository/p2/osgi/bundle/javax.mail.glassfish/1.4.1.v201108011116/javax.mail.glassfish-1.4.1.v201108011116.jar
>
> Here you can see the encoding problem:
> "Dokumente%20und%20Einstellungen"
>
> Do you know how i can fix it?
>
> Thanks
Re: [Maven] Adding resource -> encoding problem [message #1007264 is a reply to message #1007186] Tue, 05 February 2013 09:55 Go to previous messageGo to next message
Leonce Lee is currently offline Leonce Lee
Messages: 2
Registered: February 2013
Junior Member
Ed Merks wrote on Mon, 04 February 2013 16:15
The forum for Xtext is eclipse.modeling.tmf.

I'm sorry, Ed. Is there any way to move the thread?

I have no idea what a 
debug file is so maybe this is purely a Maven problem.

It's just the Maven output: mvn clean install > output.txt

I also don't
know what you mean by "adding a resource folder."


Have a look at the Spray Xtext project:
http:// code.google.com/a/eclipselabs.org/p/spray/source/browse/plugins/org.eclipselabs.spray.xtext/pom.xml

<resources>
                        <resource>
                                <directory>${project.build.directory}/xtext</directory>
                        </resource>
                </resources>


The problem here is the encoding.
Dokumente%20und%20Einstellungen

should be
Dokumente und Einstellungen

[Updated on: Tue, 05 February 2013 09:55]

Report message to a moderator

Re: [Maven] Adding resource -&amp;gt; encoding problem [message #1007267 is a reply to message #1007264] Tue, 05 February 2013 10:07 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26039
Registered: July 2009
Senior Member
Leonce,

Comments below.

On 05/02/2013 10:55 AM, Leonce Lee wrote:
> Ed Merks wrote on Mon, 04 February 2013 16:15
>> The forum for Xtext is eclipse.modeling.tmf.
>
> I'm sorry, Ed. Is there any to move the thread?
No, you'll have to post there.
>
> I have no idea what a debug file is so maybe this is purely a Maven
> problem.
> It's just the Maven output: mvn clean install > output.txt
Maybe it's better to ask on a Maven forum about that?
>
> I also don't
> know what you mean by "adding a resource folder."
>
> Have a look at the Spray Xtext project:
> http://
> code.google.com/a/eclipselabs.org/p/spray/source/browse/plugins/org.eclipselabs.spray.xtext/pom.xml
>
> <resources>
> <resource>
> <directory>${project.build.directory}/xtext</directory>
> </resource>
> </resources>
>
>
> The problem here is the encoding.
> Dokumente%20und%20Einstellungen
> should be
> Dokumente und Einstellungen
So who is doing that encoding? That too sounds like a Maven issue given
Maven's the thing processing/interpreting the pom.xml.
Previous Topic:Conditional loading of cross refs
Next Topic:[CDO] Error while importing xml cdo export file.
Goto Forum:
  


Current Time: Tue Sep 16 05:02:09 GMT 2014

Powered by FUDForum. Page generated in 0.02425 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software