Questions tagged [p4java]

32 questions
0
votes
1 answer

perforce depot not showing up on client using p4 depots

I have recently migrated my perforce server from an older version running on windows to a new Server in Linux, using this doc as reference. After restarting the server if i run p4 depots on my machine running the server, i get the following…
0
votes
1 answer

Java Connect Perforce Using the Keys

My Requirement is I want to connect to a perforce server "abc.def.com:1689" to access it requires my public and private key (identity basically) Now I want to achieve same using the Java Program. I want to connect to the Perforce server and perform…
Vikki Lohana
  • 39
  • 2
  • 10
0
votes
1 answer

Alternate for P4 Diff2 in Perforce Java API

I am having 2 Branch in Local Repo. I am developing a Utility JAR which compares the two Branch and list down the Changes(Files Changed, added and removed) done by various developers during the release Cycle Earlier I was using P4 Diff2 command in…
0
votes
1 answer

p4java api requires double refresh to get a new changelist description

In my application, I have a part where I want to automatically request a Swarm review. To do that, I put a #review tag in changelist description and shelve the files (after that, the Swarm review number appears after the tag in the description).…
terielon
  • 1
  • 1
0
votes
1 answer

Extracting the list of CL that matches a certain condition Failing

I am trying to extract a list of CL in a depot that matches a certain description and i dont have a success. below is my code and the error i get /* ALL MY IMPORTS */ /* MY PERFORCE AND HTTP modules using grapes */ /* SERVER LOGIN CONDITIONS…
DevOops
  • 276
  • 2
  • 8
  • 20
0
votes
1 answer

Trouble with Groovy to print Changelist description

I want to print the Changelist description of each changelist for a Particular stream , but the description that i am getting as output is limited to certain set of characters changelistList.each { IChangelistSummary cl -> println…
DevOops
  • 276
  • 2
  • 8
  • 20
0
votes
1 answer

p4java client setRoot not working

Using p4java to sync files on various machines, so I'm using IClient.setRoot() to change the root accordingly. But IClient.setRoot() doesn't actually change the root in the client object.I looked in the debugger right after the setRoot() call Here's…
Graeme
  • 145
  • 1
  • 2
  • 7
0
votes
1 answer

Unable to check in files to perforce from Jenkins node

We are writing a new plugin for Jenkins and one of the requirement involves uploading generated files to perforce. I am able to submit to perforce if my files reside on the master but not if they reside on the slave agent(Jenkins node). Error : File…
0
votes
0 answers

how to get changeLIst between two dates in perforce P4java API?

I am trying to deal with perforce using P4JAVA API but I am not able to find the changelist between 2 different dates if have to do this in command prompt I am using p4 changes //depot/prod/...@2016/08/16,@2016/08/29 But in P4JAVA API I am not…
0
votes
0 answers

filepath is null in IFilespec Object

I am using p4java api's in my project. I am having a IFileSpec object which is not null. but when I do fileSpec.toString() it shows me null. As per the p4java doc fileSpec.toString() method returns AnnotatedPreferredPathString which is defined to…
Chunkyy Garg
  • 107
  • 1
  • 5
0
votes
1 answer

Search file in perforce by folder pattern

I have some Java classes in perforce in different folders for a project. (There are more than one project) It is possible to search for a file in perforce and get full path of it by just specifying file name and project folder? I mean something like…
Denees
  • 9,100
  • 13
  • 47
  • 76
0
votes
0 answers

Mapping P4java Exceptions To Jax-RS

I'm developing a Web Service Application that interact with Perforce server (connect,submit,delete,sync....) and my problem is that JBOSS AS7 server blocks me every time i tried to lunch the service.this is my classes please My friends i need some…
MgMh
  • 3
  • 4
0
votes
1 answer

p4java - how to move opened files to another changelist?

Say I have a file already opened in the default changelist and I want to move it to another changelist. The Move operation allow me to specify a new changelist, but my move is ignored since the path didn't change in the filesystem.
Alexander Taylor
  • 16,574
  • 14
  • 62
  • 83
0
votes
1 answer

How to configure P4Ant Tasks to use ssl port

We use a few P4Ant tasks to commit code to our perforce depots from within an Ant task. This has been working fine for months, however we recently changed our perforce server to only accept trusted/ssl connections. As such, our new P4 port now looks…
Jason Kulatunga
  • 5,814
  • 1
  • 26
  • 50
0
votes
1 answer

eclipse not starting because p4eclipse is throwing AccessException

I was running Eclipse Junos on Mac and had installed p4eclipse plugin. After system restart I am trying to restart Eclipse, but it is throwing exceptions (as seen in logs). com.perforce.p4java.exception.AccessException: Your session has…
UW20989
  • 1,157
  • 2
  • 8
  • 9