problem with "/" vs "\" in filename argument profiling Java app [message #72009] |
Sat, 27 May 2006 00:29 |
Eclipse User |
|
|
|
Originally posted by: jreck000.hotmail.com
Forgive me if this is a known/simple problem/question...
I just completed downloading the latest eclipse/callisto release
(May 26). Downloaded Eclipse 3.2.0, used "Software Updates",
installed everything from the default "callisto discovery site".
I create a new workspace, and a new project with one class:
public class Test {
public static void main(String[] args) {
if (args.length <= 0)
System.out.println("barf!");
else
System.out.println("arg: " + args[0]);
}
}
I run this with one argument: c:/temp/temp.java.
Everything is the default, using java jre1.5.0_06.
Program prints: arg: c:/temp/temp.java
WooHoo! :)
(I get the same result debugging the program).
I now profile this (E.g Run->Profile..., select Test").
I select "java profiling", selecting everything but "probe insertion"
Program prints: arg: c:\temp\temp.java
Booo! :(
(Note different slashes - ie "\" vs "/").
Can anyone tell me why I get different results?
advathanksnce
jr
|
|
|
|
Re: problem with "/" vs "\" in filename argument profiling Java app [message #72239 is a reply to message #72009] |
Tue, 30 May 2006 14:24 |
Eclipse User |
|
|
|
Originally posted by: nmehrega.ca.ibm.com
This is a multipart message in MIME format.
--=_alternative 004F30228525717E_=
Content-Type: text/plain; charset="US-ASCII"
Which driver are you using? I just tried this with the
TPTP-4.2.0-200605250100 driver and it seems to print out the right thing
(i.e. c:/temp/temp.java) when profiling it.
I've also added an automated testcase for this.
Navid Mehregani
--=_alternative 004F30228525717E_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Which driver are you using? I
just tried this with the TPTP-4.2.0-200605250100 driver and it seems to
print out the right thing (i.e. </font><tt><font size=2>c:/temp/temp.java</font></tt><font size=2 face="sans-serif">)
when profiling it.</font>
<br>
<br><font size=2 face="sans-serif">I've also added an automated testcase
for this.</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 004F30228525717E_=--
|
|
|
Re: problem with "/" vs "\" in filename argument profiling Java app [message #72328 is a reply to message #72239] |
Tue, 30 May 2006 18:30 |
Eclipse User |
|
|
|
Originally posted by: jreck000.hotmail.com
Navid_Mehregan wrote:
> Which driver are you using? I just tried this with the
> TPTP-4.2.0-200605250100 driver...
I don't know how to answer this question - I'm far from an expert user,
however,
org.eclipse.tptp.monitoring (4.2.0.v200604131758) "TPTP Monitoring"
org.eclipse.tptp.monitoring.doc.user (4.2.0.v200604131758) "TPTP
Monitoring Project Documentation"
org.eclipse.tptp.monitoring.examples (4.2.0.v200604131758) "User examples
for the TPTP Monitoring Tools Plugins"
org.eclipse.tptp.monitoring.profile.server (4.1.100.v200604131758) "TPTP
Profile On Server Logging Utility"
org.eclipse.tptp.monitoring.report.birt (4.2.0.v200604131758) "BIRT
Monitor Reports for TPTP Branding Plugin"
org.eclipse.tptp.platform.analysis (4.2.0.v200604131758) "TPTP Analysis"
org.eclipse.tptp.platform.analysis.codereview.java (4.2.0.v200604131758)
"Java Code Review Plug-in"
org.eclipse.tptp.platform.analysis.engine (4.2.0.v200604131758) "TPTP
Analysis Engine"
org.eclipse.tptp.platform.core (4.2.0.v200604131758) "TPTP Platform"
org.eclipse.tptp.platform.core.doc.user (4.2.0.v200604131758) "TPTP
Platform Project Documentation"
org.eclipse.tptp.platform.doc.user (4.2.0.v200604131758) "TPTP Platform
Project Documentation"
org.eclipse.tptp.platform.examples (4.2.0.v200604131758) "TPTP Platform
Examples"
org.eclipse.tptp.platform.lta (4.2.0.v200604131758) "TPTP Log and Trace
Analyzer"
org.eclipse.tptp.platform.probekit (4.2.0.v200604131758) "TPTP ProbeKit"
org.eclipse.tptp.platform.probekit.doc.user (4.2.0.v200604131758)
"Probekit User Documentation"
org.eclipse.tptp.platform.profile.server (4.1.100.v200604131758A) "TPTP
Profile on Server"
org.eclipse.tptp.platform.report (4.1.100.v200604131758) "TPTP Charting
Service"
org.eclipse.tptp.platform.report.birt (4.2.0.v200604131758) "BIRT
Reporting for TPTP Branding plugin"
org.eclipse.tptp.platform.samples (4.2.0.v200604131758) "TPTP Platform
Samples"
org.eclipse.tptp.platform.statistical.ui (4.1.100.v200604131758) "TPTP
Statistical UI"
org.eclipse.tptp.platform.trace (4.2.0.v200604131758A) "TPTP Platform
Trace"
org.eclipse.tptp.test (4.2.0.v200604131758) "TPTP Test"
org.eclipse.tptp.test.doc.user (4.2.0.v200604131758) "Test Tools User
Documentation"
org.eclipse.tptp.test.report.birt (4.2.0.v200604131758) "BIRT Test Reports
for TPTP Branding Plugin"
org.eclipse.tptp.test.samples (4.1.100.v200604131758) "TPTP Test Samples"
org.eclipse.tptp.test.tools (4.2.0.v200604131758) "TPTP Test Tools"
org.eclipse.tptp.trace (4.1.100.v200604131758) "TPTP Trace"
org.eclipse.tptp.trace.report.birt (4.2.0.v200604131758) "BIRT Trace
Reports for TPTP Branding Plugin"
seem like some relevant version numbers.
This is the callisto release of 5/26.
jr
|
|
|
|
Powered by
FUDForum. Page generated in 0.03729 seconds