[sip-comm-dev] Make development of SIP Comm. easier and faster


#1

Hi,

Is it possible to have a package (Folder) as a bundle ( NOT jar file)?

Something like the line below ( in the felix config file ) :

felix.auto.start.1=
reference:file:net/java/sip/communicator/util/<file:///mybundle/util.jar>

instead of :

felix.auto.start.1=
reference:file:sc-bundles/util.jar<file:///mybundle/util.jar>

Using the second line everything work fine for me, BUT, I want to work on
the SIP Communicator using eclipse.

My idea is to make development faster.

-- Way?

Until now I proceed like on description below :

   1.

   Coding..
   2.

   Using "Make" from Eclipse->ANT->build.xml
   3.

   Using "Run" from Eclipse to run the project ( Or "Run" from Eclipse ->ANT
   )

I want to eliminate the point 2. because "Make" spend a lot of time during :

   1.

   Compilation of the code
   2.

   Make a Packages ( jar files - plugins)

--How to?

I think that is possible because using eclipse doesn't need to recompile the
code, and we don't need to make a changes in the build.xml for do that - if
Felix can start/install a bundle from folder (eclipse package).

The goal is to have a simple eclipse project :

···

-

   Coding...
   -

   Using "Run" from Eclipse to run the project.

Any suggestions please...?

Thanks a lot.

Excuse for my English.

Cheers

--
Daniel VELJJANOSKI


#2

Hi again,

Now the development of SIP Comm. Is easier and faster for me :).

I have resolved my problem, and have made SIP Communicator like a simple
eclipse project.

···

-

   Coding...
   -

   Using "Run" from Eclipse to run the project.

If someone is interested about, please email me.

Excuse for my English.

Cheers

On Wed, Jun 11, 2008 at 1:13 PM, Daniel Veljjanoski < danielveljanoski@gmail.com> wrote:

Hi,

Is it possible to have a package (Folder) as a bundle ( NOT jar file)?

Something like the line below ( in the felix config file ) :

felix.auto.start.1= reference:file:net/java/sip/communicator/util/

instead of :

felix.auto.start.1= reference:file:sc-bundles/util.jar

Using the second line everything work fine for me, BUT, I want to work on
the SIP Communicator using eclipse.

My idea is to make development faster.

-- Way?

Until now I proceed like on description below :

   1.

   Coding..
   2.

   Using "Make" from Eclipse->ANT->build.xml
   3.

   Using "Run" from Eclipse to run the project ( Or "Run" from Eclipse
   ->ANT )

I want to eliminate the point 2. because "Make" spend a lot of time during
:

   1.

   Compilation of the code
   2.

   Make a Packages ( jar files - plugins)

--How to?

I think that is possible because using eclipse doesn't need to recompile
the code, and we don't need to make a changes in the build.xml for do that -
if Felix can start/install a bundle from folder (eclipse package).

The goal is to have a simple eclipse project :

   -

   Coding...
   -

   Using "Run" from Eclipse to run the project.

Any suggestions please...?

Thanks a lot.

Excuse for my English.

Cheers

--
Daniel VELJJANOSKI

--
Daniel VELJJANOSKI


#3

Hey Daniel,

I am not sure whether felix supports this though I have a very vague
recollection of a thread on this subject on the felix mailing list. You
may want to look through their archives.

Cheers
Emil

Daniel Veljjanoski написа:

···

Hi,

Is it possible to have a package (Folder) as a bundle ( NOT jar file)?

Something like the line below ( in the felix config file ) :

felix.auto.start.1= reference:file:net/java/sip/communicator/util/
<file:///mybundle/util.jar>

instead of :

felix.auto.start.1= reference:file:sc-bundles/util.jar
<file:///mybundle/util.jar>

Using the second line everything work fine for me, BUT, I want to work
on the SIP Communicator using eclipse.

My idea is to make development faster.

-- Way?

Until now I proceed like on description below :

   1.

      Coding..

   2.

      Using "Make" from Eclipse->ANT->build.xml

   3.

      Using "Run" from Eclipse to run the project ( Or "Run" from
      Eclipse ->ANT )

I want to eliminate the point 2. because "Make" spend a lot of time during :

   1.

      Compilation of the code

   2.

      Make a Packages ( jar files - plugins)

--How to?

I think that is possible because using eclipse doesn't need to recompile
the code, and we don't need to make a changes in the build.xml for do
that - if Felix can start/install a bundle from folder (eclipse package).

The goal is to have a simple eclipse project :

    *

      Coding...

    *

      Using "Run" from Eclipse to run the project.

Any suggestions please...?

Thanks a lot.

Excuse for my English.

Cheers

--
Daniel VELJJANOSKI

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#4

Hi Atul,

Until now I have proceed like on description below :

   1.

   Coding..
   2.

   Using "Make" from Eclipse->ANT->build.xml
   3.

   Using "Run" from Eclipse to run the project ( Or "Run" from Eclipse ->ANT
   )

"Make" spend a lot of time during :

   1.

   Compilation of the code
   2.

   Make a Packages ( jar files - plugins)

The goal was to have a simple eclipse project :

eTellicom-Felix.jar (351 KB)

felix.client.run.properties (5.63 KB)

···

-

   Coding...
   -

   Using "Run" from Eclipse to run the project.

How to proceed for have that:

   1.

   Remove the Felix.jar from the Build Path and add the eTellicom-Fellix.jar
   ( look attached files). I have build the eTellicom-Fellix.jar from the
   latest source code of Felix, the only derangement I have done here is :

*private* BundleActivator createBundleActivator(BundleInfo info){

...

// Class clazz = info.getCurrentModule().getClass(className);

// Adding a line below just after the line above.

*if*(clazz == *null*) clazz= Class.*forName*(className);

...

   1.

   Replace the felix.clent.run.propertioes with the attached one.
   A difference here is the
reference:file:<file:///src/net/java/sip/communicator/util/>

   instead of using the JAR bundle, we 'll using the eclipse packages :slight_smile:

   ex . reference:file:src/net/java/sip/communicator/util/<file:///src/net/java/sip/communicator/util/>

    2.

   And the last step is to copy the META-INF folder from the specified jar
   file to the specified eclipse package .

   Ex . Copy the META-INF from /sc-bundle/util.jar to the eclipse package :
   src/net/java/sip/communicator/util/

   You have to do that for all referenced eclipse packages in the
   felix.clent.run.propertioes (the new one)

NB: The referenced eclipse packages can be found int the
META-INF/manifest.mf file of the specified jar file too.
ex. Open the META-INF/manifest.mf file from sc-bundle/util.jar you will see
the line below:
Bundle-Activator: net.java.sip.communicator.util.UtilActivator

in this case the referenced eclipse package will be :
net.java.sip.communicator.util.

Also to make you sure the you copy the META-INF folder in the right eclipse
package, the package must content a manifest file named <jar file

.manifest.mf

In my example the eclipse package net.java.sip.communicator.util content
util.manifest.mf...

I hope this help...

Excuse for my English.

Best

On Thu, Jun 12, 2008 at 12:12 PM, Atul Aggarwal <searchatul@gmail.com> wrote:

Could you explain the procedure to me. It would make my work easier.

Atul

On Thu, Jun 12, 2008 at 3:35 PM, Daniel Veljjanoski < > danielveljanoski@gmail.com> wrote:

Hi again,

Now the development of SIP Comm. Is easier and faster for me :).

I have resolved my problem, and have made SIP Communicator like a simple
eclipse project.

   -

   Coding...
   -

   Using "Run" from Eclipse to run the project.

If someone is interested about, please email me.

Excuse for my English.

Cheers

On Wed, Jun 11, 2008 at 1:13 PM, Daniel Veljjanoski < >> danielveljanoski@gmail.com> wrote:

Hi,

Is it possible to have a package (Folder) as a bundle ( NOT jar file)?

Something like the line below ( in the felix config file ) :

felix.auto.start.1= reference:file:net/java/sip/communicator/util/

instead of :

felix.auto.start.1= reference:file:sc-bundles/util.jar

Using the second line everything work fine for me, BUT, I want to work
on the SIP Communicator using eclipse.

My idea is to make development faster.

-- Way?

Until now I proceed like on description below :

   1.

   Coding..
   2.

   Using "Make" from Eclipse->ANT->build.xml
   3.

   Using "Run" from Eclipse to run the project ( Or "Run" from Eclipse
   ->ANT )

I want to eliminate the point 2. because "Make" spend a lot of time
during :

   1.

   Compilation of the code
   2.

   Make a Packages ( jar files - plugins)

--How to?

I think that is possible because using eclipse doesn't need to recompile
the code, and we don't need to make a changes in the build.xml for do that -
if Felix can start/install a bundle from folder (eclipse package).

The goal is to have a simple eclipse project :

   -

   Coding...
   -

   Using "Run" from Eclipse to run the project.

Any suggestions please...?

Thanks a lot.

Excuse for my English.

Cheers

--
Daniel VELJJANOSKI

--
Daniel VELJJANOSKI

--
PJ O'Rourke - "You can't get rid of poverty by giving people money."

--
Daniel VELJJANOSKI


#5

Oh, I hadn't seen this mail before replying to your previous post.
Apologies for the confusion and congratulaions! :slight_smile:

Emil

Daniel Veljjanoski написа:

···

Hi again,

Now the development of SIP Comm. Is easier and faster for me :).

I have resolved my problem, and have made SIP Communicator like a simple
eclipse project.

    *

      Coding...

    *

      Using "Run" from Eclipse to run the project.

If someone is interested about, please email me.

Excuse for my English.

Cheers

On Wed, Jun 11, 2008 at 1:13 PM, Daniel Veljjanoski > <danielveljanoski@gmail.com <mailto:danielveljanoski@gmail.com>> wrote:

    Hi,

    Is it possible to have a package (Folder) as a bundle ( NOT jar file)?

    Something like the line below ( in the felix config file ) :

    felix.auto.start.1= reference:file:net/java/sip/communicator/util/

    instead of :

    felix.auto.start.1= reference:file:sc-bundles/util.jar

    Using the second line everything work fine for me, BUT, I want to
    work on the SIP Communicator using eclipse.

    My idea is to make development faster.

    -- Way?

    Until now I proceed like on description below :

       1.

          Coding..

       2.

          Using "Make" from Eclipse->ANT->build.xml

       3.

          Using "Run" from Eclipse to run the project ( Or "Run" from
          Eclipse ->ANT )

    I want to eliminate the point 2. because "Make" spend a lot of time
    during :

       1.

          Compilation of the code

       2.

          Make a Packages ( jar files - plugins)

    --How to?

    I think that is possible because using eclipse doesn't need to
    recompile the code, and we don't need to make a changes in the
    build.xml for do that - if Felix can start/install a bundle from
    folder (eclipse package).

    The goal is to have a simple eclipse project :

        *

          Coding...

        *

          Using "Run" from Eclipse to run the project.

    Any suggestions please...?

    Thanks a lot.

    Excuse for my English.

    Cheers

    --
    Daniel VELJJANOSKI

--
Daniel VELJJANOSKI

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#6

Yes, it does support it. I believe he posted to the felix mailing list already and I responded there...

-> richard

Emil Ivov wrote:

···

Hey Daniel,

I am not sure whether felix supports this though I have a very vague
recollection of a thread on this subject on the felix mailing list. You
may want to look through their archives.

Cheers
Emil

Daniel Veljjanoski ������:
  

Hi,

Is it possible to have a package (Folder) as a bundle ( NOT jar file)?

Something like the line below ( in the felix config file ) :

felix.auto.start.1= reference:file:net/java/sip/communicator/util/
<file:///mybundle/util.jar>

instead of :

felix.auto.start.1= reference:file:sc-bundles/util.jar
<file:///mybundle/util.jar>

Using the second line everything work fine for me, BUT, I want to work
on the SIP Communicator using eclipse.

My idea is to make development faster.

-- Way?

Until now I proceed like on description below :

   1.

      Coding..

   2.

      Using "Make" from Eclipse->ANT->build.xml

   3.

      Using "Run" from Eclipse to run the project ( Or "Run" from
      Eclipse ->ANT )

I want to eliminate the point 2. because "Make" spend a lot of time during :

   1.

      Compilation of the code

   2.

      Make a Packages ( jar files - plugins)

--How to?

I think that is possible because using eclipse doesn't need to recompile
the code, and we don't need to make a changes in the build.xml for do
that - if Felix can start/install a bundle from folder (eclipse package).

The goal is to have a simple eclipse project :

    *

      Coding...

    *

      Using "Run" from Eclipse to run the project.

Any suggestions please...?

Thanks a lot.

Excuse for my English.

Cheers

--
Daniel VELJJANOSKI
    
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#7

Right, got it.

Thanks for clarifying this!

Cheers
Emil

Richard S. Hall написа:

···

Yes, it does support it. I believe he posted to the felix mailing list
already and I responded there...

-> richard

Emil Ivov wrote:

Hey Daniel,

I am not sure whether felix supports this though I have a very vague
recollection of a thread on this subject on the felix mailing list. You
may want to look through their archives.

Cheers
Emil

Daniel Veljjanoski написа:
  

Hi,

Is it possible to have a package (Folder) as a bundle ( NOT jar file)?

Something like the line below ( in the felix config file ) :

felix.auto.start.1= reference:file:net/java/sip/communicator/util/
<file:///mybundle/util.jar>

instead of :

felix.auto.start.1= reference:file:sc-bundles/util.jar
<file:///mybundle/util.jar>

Using the second line everything work fine for me, BUT, I want to work
on the SIP Communicator using eclipse.

My idea is to make development faster.

-- Way?

Until now I proceed like on description below :

   1.

      Coding..

   2.

      Using "Make" from Eclipse->ANT->build.xml

   3.

      Using "Run" from Eclipse to run the project ( Or "Run" from
      Eclipse ->ANT )

I want to eliminate the point 2. because "Make" spend a lot of time during :

   1.

      Compilation of the code

   2.

      Make a Packages ( jar files - plugins)

--How to?

I think that is possible because using eclipse doesn't need to recompile
the code, and we don't need to make a changes in the build.xml for do
that - if Felix can start/install a bundle from folder (eclipse package).

The goal is to have a simple eclipse project :

    *

      Coding...

    *

      Using "Run" from Eclipse to run the project.

Any suggestions please...?

Thanks a lot.

Excuse for my English.

Cheers

--
Daniel VELJJANOSKI
    
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net