• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Ant install wo app with debug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ant install wo app with debug


  • Subject: Re: Ant install wo app with debug
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 12 Jun 2009 19:28:19 -0700

Hi John,


On Jun 12, 2009, at 2:57 AM, John Pollard wrote:

Hi Chuck,

Yes Ant, and I think my build.xml is pretty much out of the can. Here is the compile target:

<target name="compile" depends="init.properties">
<taskdef name="wocompile" classname="org.objectstyle.woproject.ant.WOCompile" />


		<mkdir dir="bin" />
		<wocompile srcdir="Sources" destdir="bin">
			<frameworks root="ProjectLocal" embed="false" eclipse="true" />
			<frameworks root="External" embed="false" eclipse="true" />
			<frameworks root="Local" embed="false" eclipse="true" />
			<frameworks root="User" embed="false" eclipse="true" />
			<frameworks root="System" embed="false" eclipse="true" />
			<frameworks root="Network" embed="false" eclipse="true" />
			<classpath>
				<fileset dir="Libraries">
					<include name="*.jar" />
				</fileset>
				<fileset dir="${wo.extensions}">
					<include name="*.jar" />
				</fileset>
			</classpath>
		</wocompile>
	</target>

Regards,
John

wocompile is just a wrapper around the javac task: http://ant.apache.org/manual/CoreTasks/javac.html

You can add the debug property:

debug
Indicates whether source should be compiled with debug information; defaults to off. If set to off, -g:none will be passed on the command line for compilers that support it (for other compilers, no command line argument will be used). If set to true, the value of thedebuglevel attribute determines the command line argument.


e.g.
<wocompile srcdir="Sources" destdir="bin" debug="true">

That should give you what you want.


Chuck



On 11 Jun 2009, at 22:31, Chuck Hill wrote:


On Jun 11, 2009, at 8:41 AM, John Pollard wrote:

I have now located Project, Properties, Java Compiler, Configure Workspace Properties
I have not ticked "Enable project specific settings"
There is then a Classfile Generation section which includes:
"Add line number attributes to generated class file..." which already shows as ticked, along with the other options in this section.
So why might my deployed app stack traces not be showing line numbers I wonder?
Thanks again for any help anyone can give with this.

Are your deployments Ant built? What does the <compile> / <wocompile> task in build.xml look like?



Chuck


On 11 Jun 2009, at 16:15, John Pollard wrote:

Hi List,

After updating wolips and Eclipse to "the new hotness" (though I can't say for sure it was this that caused the change), stack traces on deployed applications lost line numbers in app log files. Is there a debug line I can add to build.xml or build.properties to ensure install builds happen with java debugging enabled? If so please be specific, such as under which target if in build.xml?

I am using:

Eclipse 3.4.1
WOLips 3.4.5594

Many thanks for any help.
John







_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Ant install wo app with debug
      • From: John Pollard <email@hidden>
References: 
 >Ant install wo app with debug (From: John Pollard <email@hidden>)
 >Re: Ant install wo app with debug (From: John Pollard <email@hidden>)
 >Re: Ant install wo app with debug (From: Chuck Hill <email@hidden>)
 >Re: Ant install wo app with debug (From: John Pollard <email@hidden>)

  • Prev by Date: Re: Any chocolate announcements
  • Next by Date: Snow Leopard compatibility and the future of webobjects
  • Previous by thread: Re: Ant install wo app with debug
  • Next by thread: Re: Ant install wo app with debug
  • Index(es):
    • Date
    • Thread