Running the wrong code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Running the wrong code

Jeremy Olmstead
I have extended the order component to make custom changes using Eclipse.  I
created a custom class with the same name as an existing one, then went into
the Java Build Path, included my new source location, and excluded the
original Java file.  I also made sure that hot-deploy/order/src was before
applications/order/src in the Order and Export tab and I include
../../application/order/build/lib in my build.xml file.  After I compile and
run it appears it is still using the original code.  When I debug it loads
up my custom Java source, but is actually executing the original code.  How
do I make sure it is running my custom code rather than the original code?

Regards,
Jeremy Olmstead
Reply | Threaded
Open this post in threaded view
|

Re: Running the wrong code

BJ Freeman
try
./ant clean
./ant build

though you remarked out the code the Jar was already built.
so need to remove the Jar and rebuild them.

=========================
BJ Freeman  <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation  <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com  <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man


Jeremy Olmstead sent the following on 9/17/2010 9:37 AM:

> I have extended the order component to make custom changes using Eclipse.  I
> created a custom class with the same name as an existing one, then went into
> the Java Build Path, included my new source location, and excluded the
> original Java file.  I also made sure that hot-deploy/order/src was before
> applications/order/src in the Order and Export tab and I include
> ../../application/order/build/lib in my build.xml file.  After I compile and
> run it appears it is still using the original code.  When I debug it loads
> up my custom Java source, but is actually executing the original code.  How
> do I make sure it is running my custom code rather than the original code?
>
> Regards,
> Jeremy Olmstead
>

Reply | Threaded
Open this post in threaded view
|

Re: Running the wrong code

Jeremy Olmstead
I ended up having to rename the original Java source files, then doing a
clean and build.  This worked until the next time I had to compile.  Now it
won't even compile.  After an ant clean, when I attempt to compile with the
original build file I get compiler errors like "cannot find symbol class
CheckOutHelper."  This, of course, is one of the files I customized by
putting it in the hot-deploy folder and renaming the original.  If I attempt
to compile the build file in hot-deploy\order I get errors that it cannot
find symbols for all the order package classes.  Again, I have all the right
folders and exclusions in the Java Build Path and I have
hot-deploy/order/src before applications/orders/src in the Order and Export
tab.  What is it that I am missing?

Thanks,
Jeremy

On Fri, Sep 17, 2010 at 2:33 PM, BJ Freeman <[hidden email]> wrote:

> try
> ./ant clean
> ./ant build
>
> though you remarked out the code the Jar was already built.
> so need to remove the Jar and rebuild them.
>
> =========================
> BJ Freeman  <http://bjfreeman.elance.com>
> Strategic Power Office with Supplier Automation  <
> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
> Specialtymarket.com  <http://www.specialtymarket.com/>
> Systems Integrator-- Glad to Assist
>
> Chat  Y! messenger: bjfr33man
>
>
> Jeremy Olmstead sent the following on 9/17/2010 9:37 AM:
>
>  I have extended the order component to make custom changes using Eclipse.
>>  I
>> created a custom class with the same name as an existing one, then went
>> into
>> the Java Build Path, included my new source location, and excluded the
>> original Java file.  I also made sure that hot-deploy/order/src was before
>> applications/order/src in the Order and Export tab and I include
>> ../../application/order/build/lib in my build.xml file.  After I compile
>> and
>> run it appears it is still using the original code.  When I debug it loads
>> up my custom Java source, but is actually executing the original code.
>>  How
>> do I make sure it is running my custom code rather than the original code?
>>
>> Regards,
>> Jeremy Olmstead
>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Running the wrong code

Adrian Crum
Did you add the order component to the

<path id="local.class.path">

element in build.xml?

-Adrian


On 9/28/2010 7:04 AM, Jeremy Olmstead wrote:

> I ended up having to rename the original Java source files, then doing a
> clean and build.  This worked until the next time I had to compile.  Now it
> won't even compile.  After an ant clean, when I attempt to compile with the
> original build file I get compiler errors like "cannot find symbol class
> CheckOutHelper."  This, of course, is one of the files I customized by
> putting it in the hot-deploy folder and renaming the original.  If I attempt
> to compile the build file in hot-deploy\order I get errors that it cannot
> find symbols for all the order package classes.  Again, I have all the right
> folders and exclusions in the Java Build Path and I have
> hot-deploy/order/src before applications/orders/src in the Order and Export
> tab.  What is it that I am missing?
>
> Thanks,
> Jeremy
>
> On Fri, Sep 17, 2010 at 2:33 PM, BJ Freeman<[hidden email]>  wrote:
>
>> try
>> ./ant clean
>> ./ant build
>>
>> though you remarked out the code the Jar was already built.
>> so need to remove the Jar and rebuild them.
>>
>> =========================
>> BJ Freeman<http://bjfreeman.elance.com>
>> Strategic Power Office with Supplier Automation<
>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com<http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>>
>>
>> Jeremy Olmstead sent the following on 9/17/2010 9:37 AM:
>>
>>   I have extended the order component to make custom changes using Eclipse.
>>>   I
>>> created a custom class with the same name as an existing one, then went
>>> into
>>> the Java Build Path, included my new source location, and excluded the
>>> original Java file.  I also made sure that hot-deploy/order/src was before
>>> applications/order/src in the Order and Export tab and I include
>>> ../../application/order/build/lib in my build.xml file.  After I compile
>>> and
>>> run it appears it is still using the original code.  When I debug it loads
>>> up my custom Java source, but is actually executing the original code.
>>>   How
>>> do I make sure it is running my custom code rather than the original code?
>>>
>>> Regards,
>>> Jeremy Olmstead
>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Running the wrong code

Jeremy Olmstead
Yes, and it also has the <fileset dir="../../applications/order/build/lib"
includes="*.jar"/> entry.  Any other suggestions?

Jeremy
On Sep 28, 2010 9:41 AM, "Adrian Crum" <[hidden email]> wrote:

> Did you add the order component to the
>
> <path id="local.class.path">
>
> element in build.xml?
>
> -Adrian
>
>
> On 9/28/2010 7:04 AM, Jeremy Olmstead wrote:
>> I ended up having to rename the original Java source files, then doing a
>> clean and build. This worked until the next time I had to compile. Now it
>> won't even compile. After an ant clean, when I attempt to compile with
the
>> original build file I get compiler errors like "cannot find symbol class
>> CheckOutHelper." This, of course, is one of the files I customized by
>> putting it in the hot-deploy folder and renaming the original. If I
attempt
>> to compile the build file in hot-deploy\order I get errors that it cannot
>> find symbols for all the order package classes. Again, I have all the
right
>> folders and exclusions in the Java Build Path and I have
>> hot-deploy/order/src before applications/orders/src in the Order and
Export

>> tab. What is it that I am missing?
>>
>> Thanks,
>> Jeremy
>>
>> On Fri, Sep 17, 2010 at 2:33 PM, BJ Freeman<[hidden email]> wrote:
>>
>>> try
>>> ./ant clean
>>> ./ant build
>>>
>>> though you remarked out the code the Jar was already built.
>>> so need to remove the Jar and rebuild them.
>>>
>>> =========================
>>> BJ Freeman<http://bjfreeman.elance.com>
>>> Strategic Power Office with Supplier Automation<
>>> http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>> Specialtymarket.com<http://www.specialtymarket.com/>
>>> Systems Integrator-- Glad to Assist
>>>
>>> Chat Y! messenger: bjfr33man
>>>
>>>
>>> Jeremy Olmstead sent the following on 9/17/2010 9:37 AM:
>>>
>>> I have extended the order component to make custom changes using
Eclipse.
>>>> I
>>>> created a custom class with the same name as an existing one, then went
>>>> into
>>>> the Java Build Path, included my new source location, and excluded the
>>>> original Java file. I also made sure that hot-deploy/order/src was
before
>>>> applications/order/src in the Order and Export tab and I include
>>>> ../../application/order/build/lib in my build.xml file. After I compile
>>>> and
>>>> run it appears it is still using the original code. When I debug it
loads
>>>> up my custom Java source, but is actually executing the original code.
>>>> How
>>>> do I make sure it is running my custom code rather than the original
code?
>>>>
>>>> Regards,
>>>> Jeremy Olmstead
>>>>
>>>>
>>>
>>