Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » problem with "/" vs "\" in filename argument profiling Java app
problem with "/" vs "\" in filename argument profiling Java app [message #72009] Sat, 27 May 2006 00:29 Go to next message
Eclipse UserFriend
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 #72098 is a reply to message #72009] Mon, 29 May 2006 12:28 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi John,
This appears to be a defect. Launching an application using a profiling
set should not modify the application parameters. Can you open a TPTP
defect ( https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=T PTP)?

Paul
"John Recker" <jreck000@hotmail.com> wrote in message
news:ba1b201600a57d1fe0f07dbc008965a7$1@www.eclipse.org...
>
> 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 Go to previous messageGo to next message
Eclipse UserFriend
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? &nbsp;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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: problem with "/" vs "\" in filename argument profiling Java app [message #72751 is a reply to message #72328] Wed, 31 May 2006 17:47 Go to previous message
Eclipse UserFriend
Originally posted by: nmehrega.ca.ibm.com

This is a multipart message in MIME format.
--=_alternative 0061BC528525717F_=
Content-Type: text/plain; charset="US-ASCII"

The driver you're using is a bit older than mine. You can either wait for
the Callisto RC4 driver, which should be available soon or download the
latest development driver from here:
http://www.eclipse.org/tptp/home/downloads/downloads.php?lin k=link4&ver=4.2.0

Navid Mehregani
--=_alternative 0061BC528525717F_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">The driver you're using is a bit older
than mine. &nbsp;You can either wait for the Callisto RC4 driver, which
should be available soon or download the latest development driver from
here: http://www.eclipse.org/tptp/home/downloads/downloads.php?lin k=link4&amp;ver=4.2.0</font>
<br>
<br><font size=2 face="sans-serif">Navid Mehregani</font>
--=_alternative 0061BC528525717F_=--
Previous Topic:Agents cannot be found sometimes
Next Topic:Running Agent Controller on Linux
Goto Forum:
  


Current Time: Fri Apr 26 08:05:37 GMT 2024

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

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

Back to the top