Solved

Need help applying patch to an existing project in eclipse

Posted on 2011-02-18
7
802 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
  • 4
  • 2
7 Comments
 
LVL 5

Expert Comment

by:aciuica
Comment Utility
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
Comment Utility
In first sentence i meen "... your project name is spark" not "park" :)
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
Comment Utility
check whether its spark or Spark bcz it case sentive
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 1

Author Comment

by:schang626
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

762 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now