vovka / fb4linux

Automatically exported from code.google.com/p/fb4linux
0 stars 0 forks source link

Ant task <fb.exportReleaseBuild /> => This feature requires a Flash Builder Premium license. #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have installed release version (works great) and found one small issue,
ant task <fb.exportReleaseBuild /> requires premium license, there is no
form to insert serial number in ide, it could be possible to insert serial
number in /home/[user]/.adobe/Flex/license.properties but the sn seams to
be somehow encoded.

I have found two solutions:
1) decompile class
com.adobe.flexbuilder.exportimport.ant.ExportReleaseBuildTask and comment
out line ASNUIBridge.throwIfFlexBuilderProFeaturesDisabled(); in execute method

2) decompile class com.adobe.flexbuilder.ui.asn.ASNUIBridge (it can be
found in
/home/brozik/Applications/FlashBuilder/dropins/FlashBuilder4/eclipse/plugins/com
.adobe.flexbuilder.ui_4.0.0.272416/ui.jar)
and paste this content:

package com.adobe.flexbuilder.ui.asn;

public final class ASNUIBridge
{
    public static final int FLASH_BUILDER_PREMIUM_REQUIRED = 2389;

    public static final boolean start()
    {
        return true;
    }

    public static boolean areFlexBuilderProFeaturesEnabled(boolean
showMessageFlag)
    {
        return false;
    }

    public static void throwIfFlexBuilderProFeaturesDisabled()
    {
        // nothing to do
    }
}

i have used second option becose the class is shorter, but there must be a
better option :-)

i beleve this could help you eshangrao or someone else to implement final
solution for <fb.exportReleaseBuild />

good coding...

Original issue reported on code.google.com by josef.br...@gmail.com on 25 Mar 2010 at 6:43

GoogleCodeExporter commented 9 years ago
sorry for typos :-) (becose)

Original comment by josef.br...@gmail.com on 25 Mar 2010 at 6:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
thanks u code,i had fixed the bug in last version,and i had port fb4linux to dev
version default.

download it again!

Original comment by eshang...@gmail.com on 26 Mar 2010 at 2:00

GoogleCodeExporter commented 9 years ago
thanks for quick response, i tried this solution but it seems not to be a 
complete,
look at this:

main:
     [java] Buildfile: /dev/shm/work/trunk/common/flex/cairngorm/build.xml
     [java] 
     [java] compile:
     [java] [fb.prepare] Removing project '/dev/shm/work/trunk/common/flex/cairngorm'...
     [java] [fb.prepare] Importing project '/dev/shm/work/trunk/common/flex/cairngorm'...
     [java] [fb.prepare] Opening project '/dev/shm/work/trunk/common/flex/cairngorm'...
     [java]      [echo] Compile cairngorm...
     [java] [fb.exportReleaseBuild] **** Error logged by plugin:
com.adobe.flexbuilder.project ****
     [java] [fb.exportReleaseBuild] Linux not yet supported
     [java] [fb.exportReleaseBuild] Throwable: java.lang.RuntimeException: Linux not
yet supported
     [java] [fb.exportReleaseBuild] java.lang.RuntimeException: Linux not yet supported
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningTracker.doIsP
layerAlreadyLoaded(PlayerTrustWarningTracker.java:265)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningTracker.isPla
yerAlreadyLoaded(PlayerTrustWarningTracker.java:201)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningTracker.playe
rTrustAdded(PlayerTrustWarningTracker.java:153)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningDelegate.play
erTrustAdded(PlayerTrustWarningDelegate.java:30)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexbuilder.project.internal.PlayerTrustStore.setTrustPath(PlayerTrust
Store.java:159)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexbuilder.project.internal.PlayerTrustStore.setProjectTrustPath(Play
erTrustStore.java:118)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject$5.run(Ac
tionScriptProject.java:1197)
     [java] [fb.exportReleaseBuild]     at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
     [java] [fb.exportReleaseBuild] *******************************************
     [java] [fb.exportReleaseBuild] 
     [java] [fb.exportReleaseBuild] Compiling 1 application to
/dev/shm/work/trunk/common/flex/cairngorm/bin...
     [java] [fb.exportReleaseBuild] [compilation completed 845ms]
     [java] [fb.prepare] Removing project '/dev/shm/work/trunk/common/flex/cairngorm'...
     [java] [fb.prepare] **** Error logged by plugin: com.adobe.flexbuilder.project ****
     [java] [fb.prepare] Linux not yet supported
     [java] [fb.prepare] Throwable: java.lang.RuntimeException: Linux not yet supported
     [java] [fb.prepare] java.lang.RuntimeException: Linux not yet supported
     [java] [fb.prepare]    at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningTracker.doIsP
layerAlreadyLoaded(PlayerTrustWarningTracker.java:265)
     [java] [fb.prepare]    at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningTracker.isPla
yerAlreadyLoaded(PlayerTrustWarningTracker.java:201)
     [java] [fb.prepare]    at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningTracker.playe
rTrustRemoved(PlayerTrustWarningTracker.java:171)
     [java] [fb.prepare]    at
com.adobe.flexide.launching.internal.playertrust.PlayerTrustWarningDelegate.play
erTrustRemoved(PlayerTrustWarningDelegate.java:37)
     [java] [fb.prepare]    at
com.adobe.flexbuilder.project.internal.PlayerTrustStore.removeTrustPath(PlayerTr
ustStore.java:182)
     [java] [fb.prepare]    at
com.adobe.flexbuilder.project.internal.PlayerTrustStore.removeProjectTrustPath(P
layerTrustStore.java:144)
     [java] [fb.prepare]    at
com.adobe.flexbuilder.project.actionscript.internal.ActionScriptProject.remove(A
ctionScriptProject.java:1218)
     [java] [fb.prepare]    at
com.adobe.flexbuilder.project.internal.FlexProjectCore$5.resourceChanged(FlexPro
jectCore.java:699)
     [java] [fb.prepare]    at
org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.j
ava:291)
     [java] [fb.prepare]    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
     [java] [fb.prepare]    at
org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.
java:285)
     [java] [fb.prepare]    at
org.eclipse.core.internal.events.NotificationManager.handleEvent(NotificationMan
ager.java:261)
     [java] [fb.prepare]    at
org.eclipse.core.internal.resources.Workspace.broadcastEvent(Workspace.java:307)
     [java] [fb.prepare]    at
org.eclipse.core.internal.resources.Resource.broadcastPreDeleteEvent(Resource.ja
va:1821)
     [java] [fb.prepare]    at
org.eclipse.core.internal.resources.Resource.delete(Resource.java:709)
     [java] [fb.prepare]    at
org.eclipse.core.internal.resources.Project.delete(Project.java:309)
     [java] [fb.prepare]    at
com.stringdata.ant.PrepareToCommandLineFlashBuilder.execute(PrepareToCommandLine
FlashBuilder.java:35)
     [java] [fb.prepare]    at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
     [java] [fb.prepare]    at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
     [java] [fb.prepare]    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
     [java] [fb.prepare]    at java.lang.reflect.Method.invoke(Method.java:597)
     [java] [fb.prepare]    at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java] [fb.prepare]    at org.apache.tools.ant.Task.perform(Task.java:348)
     [java] [fb.prepare]    at org.apache.tools.ant.Target.execute(Target.java:357)
     [java] [fb.prepare]    at org.apache.tools.ant.Target.performTasks(Target.java:385)
     [java] [fb.prepare]    at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
     [java] [fb.prepare]    at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
     [java] [fb.prepare]    at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:
41)
     [java] [fb.prepare]    at
org.eclipse.ant.internal.core.ant.EclipseDefaultExecutor.executeTargets(EclipseD
efaultExecutor.java:32)
     [java] [fb.prepare]    at
org.apache.tools.ant.Project.executeTargets(Project.java:1189)
     [java] [fb.prepare]    at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:6
62)
     [java] [fb.prepare]    at
org.eclipse.ant.internal.core.ant.InternalAntRunner.run(InternalAntRunner.java:5
34)
     [java] [fb.prepare]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] [fb.prepare]    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] [fb.prepare]    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
     [java] [fb.prepare]    at java.lang.reflect.Method.invoke(Method.java:597)
     [java] [fb.prepare]    at org.eclipse.ant.core.AntRunner.run(AntRunner.java:513)
     [java] [fb.prepare]    at org.eclipse.ant.core.AntRunner.start(AntRunner.java:600)
     [java] [fb.prepare]    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
     [java] [fb.prepare]    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:110)
     [java] [fb.prepare]    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:79)
     [java] [fb.prepare]    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
     [java] [fb.prepare]    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
     [java] [fb.prepare]    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java] [fb.prepare]    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java] [fb.prepare]    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
     [java] [fb.prepare]    at java.lang.reflect.Method.invoke(Method.java:597)
     [java] [fb.prepare]    at
org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
     [java] [fb.prepare]    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
     [java] [fb.prepare]    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
     [java] [fb.prepare]    at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
     [java] [fb.prepare] *******************************************
     [java] [fb.prepare] 

Original comment by josef.br...@gmail.com on 26 Mar 2010 at 8:13

GoogleCodeExporter commented 9 years ago
havd fixed,redownload again to test!

Original comment by eshang...@gmail.com on 29 Mar 2010 at 4:10

GoogleCodeExporter commented 9 years ago
hi, i tried last solution and found one small issue:
it seems you implemented some socket communication, so now if i have two 
workspaces A
and B, running flashbuilder in workspace A and running headless flashbuilder 
under
second wokspace B at the same time (just for ant compilation) so i get this 
error:
[java] [fb.prepare] Opening project 
'/dev/shm/work/trunk/common/flex/cairngorm'...
     [java]      [echo] Compile cairngorm...
     [java] [fb.exportReleaseBuild] **** Error logged by plugin:
com.adobe.flexbuilder.project ****
     [java] [fb.exportReleaseBuild] Error en SocketClientReceiver 69
     [java] [fb.exportReleaseBuild] Throwable: java.net.BindException: Address
already in use
     [java] [fb.exportReleaseBuild] java.net.BindException: Address already in use
     [java] [fb.exportReleaseBuild]     at java.net.PlainSocketImpl.socketBind(Native
Method)
     [java] [fb.exportReleaseBuild]     at
java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
     [java] [fb.exportReleaseBuild]     at java.net.ServerSocket.bind(ServerSocket.java:319)
     [java] [fb.exportReleaseBuild]     at
java.net.ServerSocket.<init>(ServerSocket.java:185)
     [java] [fb.exportReleaseBuild]     at
java.net.ServerSocket.<init>(ServerSocket.java:97)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexbuilder.flexunitrunresults.data.ClientSocketsManager.listen(Client
SocketsManager.java:57)
     [java] [fb.exportReleaseBuild]     at
com.adobe.flexbuilder.flexunitrunresults.data.ClientSocketsManager.run(ClientSoc
ketsManager.java:113)
     [java] [fb.exportReleaseBuild]     at java.lang.Thread.run(Thread.java:619)
     [java] [fb.exportReleaseBuild] *******************************************

otherwise it works great, thanks again... ;-)

Original comment by josef.br...@gmail.com on 29 Mar 2010 at 7:31

GoogleCodeExporter commented 9 years ago
i forgot one thing, if previous changes were made just for 
<fb.exportReleaseBuild />
working, so i think that using this code could be easier, i use it quite long 
time
without issues...

package com.adobe.flexbuilder.ui.asn;

public final class ASNUIBridge
{
    public static final int FLASH_BUILDER_PREMIUM_REQUIRED = 2389;

    public static final boolean start()
    {
        return true;
    }

    public static boolean areFlexBuilderProFeaturesEnabled(boolean showMessageFlag)
    {
        return true;
    }

    public static void throwIfFlexBuilderProFeaturesDisabled()
    {
    }
}

Original comment by josef.br...@gmail.com on 29 Mar 2010 at 7:38

GoogleCodeExporter commented 9 years ago
but i admit that it is not a system solution... :-)

Original comment by josef.br...@gmail.com on 29 Mar 2010 at 7:39

GoogleCodeExporter commented 9 years ago
2010-03-26,updated,i had put the fb4linux to dev version,so the ASNUIBridge'll 
return
true anywhere and don't throw any CoreException in the
throwIfFlexBuilderProFeaturesDisabled.so u's code not the way,i have not use the
cairngorm,so can u give a example project?

thanks!

Original comment by eshang...@gmail.com on 29 Mar 2010 at 2:01

GoogleCodeExporter commented 9 years ago
Hi. I need to use the flashbuilder premium license too, because I want to use 
the automation API, which is limited in the normal flashbuilder version. But I 
don't know how I can do this. I need to modify the code or it already was 
modified?

I need to compile fb4linux? Please, point me out to the right direction.

Thanks.

Obs: Congratulations for this project. It's very useful!

Original comment by wagnerfr...@gmail.com on 27 Jul 2010 at 2:06

GoogleCodeExporter commented 9 years ago
hi, 
this issue is already solved. if you need compile with pro license just add 
this:
-license flashbuilder4 xxxx-xxxx-xxxx-xxxx-xxxx-xxxx
to additional compiler settings in flash builder (project/properties/flex 
compiler)

hope it helps, chears ;-)

Original comment by josef.br...@gmail.com on 27 Jul 2010 at 2:15

GoogleCodeExporter commented 9 years ago
Thanks!

It's working now!

Original comment by wagnerfr...@gmail.com on 27 Jul 2010 at 5:00