Solved

Need help applying patch to an existing project in eclipse

Posted on 2011-02-18
7
832 Views
Last Modified: 2012-05-11
Hello all,

I'm trying to apply a patch to Spark by using Eclipse. i follow the instructions here http://community.igniterealtime.org/docs/DOC-1040
and i think everything went well. I then follow the instructions here
http://community.igniterealtime.org/message/187391#187391
However, when i tried to apply the patch i get a bunch of errors.
Errors while patching
What I'm trying to accomplish here is to disable the Add Contacts option in Spark. This is my first time using Eclipse so please talk to me in baby language. Let me know if you need more info. Thanks!
0
Comment
Question by:schang626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:aciuica
ID: 34932519
It seems that the patch expected that you have a Spark project and probably your project name is park.
But anyway it seems that the latest sources contains already the changes from this patch.
So I think that you need only to change in the default.properties file the line:
ADD_CONTACT_DISABLED =
with:
ADD_CONTACT_DISABLED = true
0
 
LVL 5

Expert Comment

by:aciuica
ID: 34932521
In first sentence i meen "... your project name is spark" not "park" :)
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 34932955
check whether its spark or Spark bcz it case sentive
0
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
LVL 1

Author Comment

by:schang626
ID: 35002821
Thanks for the replies.
how to change the default.properties file?

when i create the project, it only takes spark. It doesn't let me enter Spark
0
 
LVL 5

Accepted Solution

by:
aciuica earned 500 total points
ID: 35005412
In spark project should be a file default.properties. You can open it and change the line ADD_CONTACT_DISABLED =
with:
ADD_CONTACT_DISABLED = true
I meen that the code contained in the patch is already implemented in last version.
So you don't need to apply the pacth. Is enough to configure this ADD_CONTACT_DISABLED variable.
0
 
LVL 1

Author Comment

by:schang626
ID: 35019296
ok i found the file default.properties here: C:\Users\xxx\workspace\spark\bin\org\jivesoftware\resource
and i've change the statues to true. how do i run the program now? Thanks.
0
 
LVL 5

Expert Comment

by:aciuica
ID: 35019745
I think that you should change the file (you can do it in eclipse) from location .../spark/src/java/org/jivesoftware/resource/default.properties and then you can run the program from eclipse like before using main class org.jivesoftware.launcher.Startup
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question